FAILURE MAP
← Case archive

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

Business/252 day count with daily compounding factor: listed holidays are subtracted from a weekday count · case 03

Holidays on weekends and duplicated holiday entries remove business days twice.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Inputs start and end [y,m,d], a holiday list (may contain weekend dates and duplicates) and an annual rate in percent. bd counts weekdays in [start, end) that are not holidays. Factor = (1 + rate/100)^(bd/252). Return [bd, factor rounded to 8 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 holiday subtraction 1[92, 1.03797999][94, 1.03882147]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 ↗