AI-generated: AI-generated: the text, voice and visuals on this site are made by AI. Every formula is tested on sample data by the Cellwise checker.

Calculate days overdue for an invoice in Excel and Google Sheets


invoice dates freelancer

One formula that returns how many days an unpaid invoice is past its due date, and zero if paid.

The problem

You want to know whether an invoice is late and by how many days.

Sample data

Column C is Due, column E is Paid (blank means unpaid), and F2 holds the as-of date 2026-10-25. A fixed date keeps the sample answer from moving.

RowDuePaidResult
32026-10-10(blank)15
2anypaid0
4(blank)10

Formula

=IF(E3<>"",0,MAX(0,F3-C3))

Result for row 3: 15. Days until due, for a future invoice: =C5-F5 gives 11 in the sample.

Excel vs Sheets

Identical in both. In your own sheet, replace the as-of cell with TODAY() for live results.

Template

The Freelancer Invoice and Income Tracker uses this idea to flag late invoices.

Tested on sample data by the Cellwise checker (log CW-PL-20261018-41). AI-made: the text, voice and visuals are generated by AI.

Checked before publishing: a check.