FAILURE MAP
← Case archive

FA-58483 / Loan amortization schedules / Member archive

Payment application waterfall: suspense release · case 03

Funds held in suspense disappear once a qualifying payment arrives.

Member previewVariant 3 · 3 implementations · 7 checks per implementation

Case contract

x = {'due': {'interest', 'principal', 'late_fee', 'fees'}, 'payment', 'suspense', 'threshold', 'balance'}. Available = payment + suspense. If available < threshold, everything goes to suspense and nothing is applied. Otherwise apply in order interest, principal, late_fee, fees, then curtail principal with the remainder up to balance - applied principal; the rest is refunded. Return {'applied', 'curtailment', 'refund', 'suspense', 'new_balance'}.

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: suspense release{"applied": {"fees": 0, "interest": 0, "late_fee": 0, "principal": 300}, "curtailment": 0, "new_balance": 500, "refund": 0, "suspense": 0}{"applied": {"fees": 0, "interest": 0, "late_fee": 0, "principal": 1000}, "curtailment": -200, "new_balance": 0, "refund": 200, "suspense": 0}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 ↗