FAILURE MAP
← Case archive

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

Settlement date from a business-day lag across two calendars: the lag is added in calendar days and then rolled forward · case 02

Trades before weekends and holidays settle too early.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Inputs a trade date (a business day), a lag n and two holiday lists. A business day is a weekday that is a holiday in neither calendar. Settlement is the n-th business day strictly after trade (trade date for n=0). Return [y,m,d].

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 calendar lag then roll 1[2030, 7, 30][2030, 7, 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 ↗