FAILURE MAP
← Case archive

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

Canadian-style semi-annual accrued interest: early-period accrual uses the actual period length · case 02

Accrued interest follows an actual/actual pattern instead of the 365-day basis.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Inputs prev and next coupon dates, settlement in [prev, next) and annual rate (semi-annual coupons). c = 100*rate, days = days(prev, settle). If days >= 183 accrued = c/2 - c*days(settle, next)/365, else accrued = c*days/365. Round to 6 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 forward accrual basis 11.2430941.232877Failed

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 ↗