FAILURE MAP
← Case archive

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

Business/252 day count with daily compounding factor: the annual rate is applied as simple interest · case 02

Accrual factors are understated for long spans at high rates.

Member previewVariant 2 · 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 compounding form 1[77, 1.04170833][77, 1.0398712]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 ↗