# How much of these invoices is outstanding or overdue?

Add payment terms to each issue date, mark invoices paid, open or overdue, and total what is still outstanding and overdue.

Page: https://straightgate.pages.dev/t/invoice-overdue-outstanding/

## Formula and worked examples

### Sample three invoices, 30-day terms, today 28 November 2026

Inputs: terms_days = 30, today = 2026-11-28, invoices = [['2027-001', 'Acme Co', '2026-09-01', 1200, '2026-09-20'], ['2027-002', 'Bright LLC', '2026-10-01', 800, ''], ['2027-003', 'Corner Cafe', '2026-10-05', 450, '']]

Results: outstanding = 1250.0, overdue = 1250.0, rows = [{'number': '2027-001', 'client': 'Acme Co', 'due': '2026-10-01', 'amount': 1200, 'status': 'Paid'}, {'number': '2027-002', 'client': 'Bright LLC', 'due': '2026-10-31', 'amount': 800, 'status': 'Overdue'}, {'number': '2027-003', 'client': 'Corner Cafe', 'due': '2026-11-04', 'amount': 450, 'status': 'Overdue'}]

### Unpaid invoice due on today is still Open, not Overdue

Inputs: terms_days = 30, today = 2026-10-31, invoices = [['A', 'C', '2026-10-01', 800, '']]

Results: outstanding = 800.0, overdue = 0.0, rows = [{'number': 'A', 'client': 'C', 'due': '2026-10-31', 'amount': 800, 'status': 'Open'}]

### 14-day terms, issued 20 November 2026, today 28 November 2026 — still Open

Inputs: terms_days = 14, today = 2026-11-28, invoices = [['B', 'C', '2026-11-20', 100, '']]

Results: outstanding = 100.0, overdue = 0.0, rows = [{'number': 'B', 'client': 'C', 'due': '2026-12-04', 'amount': 100, 'status': 'Open'}]

## Related spreadsheets

- [Invoice Tracker Spreadsheet – Due Dates, Paid / Open / Overdue Status and Outstanding Total (Excel)](https://straightgate.pages.dev/p/qtoab.md) — $5. Buy: https://straightgate.gumroad.com/l/qtoab?wanted=true
