Cedar Teaching Bank · synthetic USD minor units
Every day contributes; each rate stays with its days
Compare complete balance paths, then step through their exact averages and rate segments.
This lab runs the actual TypeScript reference on a declared as-of calendar. It proposes an accrual; it neither authenticates receipts nor posts a journal.
Full-period decision
The full result uses every supplied date at the declared knowledge cutoff. Prefix stepping is an illustration using a shorter complete period and that same cutoff; it does not recreate what the service knew on each historical day.
Current prefix illustration
Sum · minor-unit days
Exact average · minor units
Exact earned · minor units
Each card is one calendar day. Dimmed cards remain in the full-period calculation. A missing date is a gap, never zero.
| Date | Posted balance | Rate ppm | Exact daily interest |
|---|
The last five rows are focused here; the calendar above preserves all full-period inputs.