FAILURE MAP
← Case archive

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

Canadian-style semi-annual accrued interest: the late-period branch accrues forward like the early branch · case 04

Accrued interest near the end of a 184-day period exceeds the half-year coupon.

Member previewVariant 4 · 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 late-period complement 10.6267120.621575Failed

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 ↗