FAILURE MAP
← Case archive

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

Act/Act AFB whole-year decomposition: a 29 February end steps back to 1 March in common years · case 03

Periods ending on a leap day count one fewer stub day or one fewer whole year.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Inputs start < end [y,m,d]. Count whole years n stepping back from the end date (an end of 29 February maps to 28 February in non-leap years) while the stepped date is not before start. The stub runs from start to the end stepped back n years; its denominator is 366 if a 29 February lies in (start, stub end], else 365. Return n + stub 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 leap anniversary mapping 15.5041095895.501369863Failed

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 ↗