The interest engine
Interest compounds daily rather than monthly, the day's interest is added to the balance so tomorrow computes on it. Accrual windows are anchored to the day of month the loan first charged, with explicit handling for the months where that day doesn't survive the wrap. Partial payments reduce the balance on the exact day and force the daily rate to be recomputed for the remainder. Past term end, the default rate takes over. Retained interest posts as a matched debit and credit pair, deliberately timestamped minutes apart so ledger ordering stays deterministic.

