FAILURE MAP
← Case archive

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

Adjusted versus unadjusted accrual periods: the accrual end always equals the payment date · case 05

Unadjusted accrual periods gain or lose days whenever the payment date moves.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Inputs an unadjusted schedule (first element is the accrual start), holidays and a flag. Business days are weekdays not in holidays; adjustment is modified following. For each period the payment date is the adjusted end date; accrual days use adjusted start and end if the flag is set, otherwise the unadjusted dates. Return [[payment date, accrual days], ...].

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 accrual end source 1[[[2024, 10, 30], 30], [[2024, 11, 29], 30], [[2024, 12, 31], 31], [[2025, 1, 30], 31]][[[2024, 10, 30], 30], [[2024, 11, 29], 31], [[2024, 12, 31], 30], [[2025, 1, 30], 31]]Failed

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 ↗