FAILURE MAP
← Case archive

FA-60947 / Bond day-count conventions / Member archive

Act/365L denominator selection: annual periods use the end year leap status · case 02

An annual period ending in March of a leap year from March of the prior year is priced on 365 days.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Inputs start, end ([y,m,d]) and coupon frequency. Days are actual days. For annual frequency the denominator is 366 if any 29 February lies in (start, end], else 365. For other frequencies the denominator is 366 if the end date year is a leap year, else 365. Return days/denominator rounded to 9 decimals.

Why this case matters

Bond accrual and pricing systems depend on exact day-count arithmetic; a single-day error changes settlement cash.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression annual leap-day test 13.0027397262.994535519Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗