FAILURE MAP
← Case archive

FA-58703 / Loan amortization schedules / Member archive

Accelerated biweekly schedule: biweekly payment derivation · case 03

Odd-cent monthly payments produce a biweekly payment a half cent short.

Member previewVariant 3 · 3 implementations · 7 checks per implementation

Case contract

x = {'principal', 'rate_bp', 'months'}. The monthly payment is the exact annuity rounded half-up; the biweekly payment is round_half_up(monthly/2), paid 26 times a year. Periodic interest is round_half_up(balance*bp/260000). When balance + interest <= payment the loan pays off with that amount. Return {'payment', 'periods', 'final_payment', 'total_interest'}.

Why this case matters

Amortization engines drive borrower statements, payoff quotes and investor remittances; a misplaced rounding step, boundary or ordering rule compounds across hundreds of periods.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: biweekly payment derivation{"final_payment": 17186, "payment": 18578, "periods": 14, "total_interest": 8700}{"final_payment": 17172, "payment": 18579, "periods": 14, "total_interest": 8699}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 ↗