FAILURE MAP
← Case archive

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

Inflation-linked reference index interpolation: the reference CPI is truncated instead of rounded · case 05

Reference indexes and the ratios computed from them are low by up to one unit in the fifth decimal.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Inputs a date [y,m,d], a map "YYYY-MM" to CPI level and a base index. RefCPI = CPI(m-3) + (d-1)/days_in_month(m) * (CPI(m-2) - CPI(m-3)), computed in Decimal and rounded half-up to 5 decimals; the index ratio is RefCPI/base rounded half-up to 5 decimals. Return both as strings.

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 reference index rounding 1["233.50264", "0.80069"]["233.50265", "0.80069"]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 ↗