Age receivables after partial payments Original fictional practice data · 2026-11-11 · CC BY 4.0 BRIEF Collections needs open balances as of 12 November. Apply only posted payments received by the cutoff and keep an overpayment as a credit instead of erasing it. CONTRACT 1. Cutoff is 2026-11-12 inclusive; ignore pending and later payments. 2. Balance equals invoice minus eligible payment total. A negative balance is CREDIT. Positive balances due before cutoff are OVERDUE, due on cutoff are DUE_TODAY, and later balances are NOT_DUE. 3. Output invoice_id,balance_cents,collection_status in invoice_id order. METHOD Aggregate posted payments through cutoff, so V1 receives 5,000 cents. Check negative balances before date-based statuses. Validate open debits and credits separately, then reconcile the signed balance. COMMON MISTAKE Summing all payments includes V2’s future receipt and V3’s pending receipt, understating collections work. INDEPENDENT CROSS-CHECK Positive balances total 19,000 cents; the credit is 500 cents; signed balance is 18,500 cents. DELIVER A checked output CSV and a handoff note explaining the exception policy. Use setup.sql in SQLite or import each table CSV into your spreadsheet. expected.csv is the complete reference result; an empty CSV field represents SQL NULL. The browser executes SQLite, not Excel formulas. XLOOKUP is unavailable in Excel 2016 and 2019. Sources for function behavior: https://www.sqlite.org/lang_select.html and https://support.microsoft.com/en-us/excel/functions/xlookup-function (checked 2026-11-11). Rates, dates and policies here are exercise assumptions.