Late invoices are the part of freelancing nobody puts on a portfolio. You send a polite reminder, get half an answer, and then quietly write the money off as "the cost of keeping the client".
What most people never work out is that in the UK, Ireland and most EU states the invoice has been accruing statutory interest since the day after it was due, plus (in the UK, Ireland and most of the EU) a fixed recovery sum per invoice. In the UK none of that needs a clause in your contract.
I built Day 31 to answer two questions on one page: what is owed today, and what do I send the client.
https://day31app.vercel.app/?utm_source=devto&utm_medium=launch&utm_campaign=day31
What it does
- Amount, due date, governing law in. Interest to the day, fixed recovery sum and total claim out.
- Shows the legal basis with a link to the source and the date the rate applies from.
- Gives you three letters: a friendly nudge, a formal demand, a letter before action.
- Optional contract-rate mode, for when the contract sets its own rate.
- No account, no email, no database. Everything evaluates in the browser.
The parts that were actually work
The rate table is the product. The UK rate is the Bank of England base rate plus 8 points, and the rate that applies to an invoice is the one fixed on the six-month reference date, not today's rate. That distinction alone changes the answer by a few percent, and nobody would catch it by hand. For the EU I ship the Commission's published table for 1 Jul - 31 Dec 2026 with its source link, because each member state sets its own rate twice a year.
Compensation is per invoice, not pro-rated. In the UK: £40 for a debt under £1,000, £70 up to £10,000, £100 above it. A £200 invoice and a £9,000 invoice that are equally late claim the same fixed sum. Most spreadsheets that model late payment get this wrong.
Day counting. Interest runs from the day after the due date, and the awkward inputs are leap years, month ends, and invoices that were finally paid late (the interest accrued up to settlement does not disappear when the principal arrives). All of it is pure functions with table-driven tests.
Cross-border is where the tools I found stop. Hielda, Owed and LateFee are UK-only. The real question on a cross-border invoice is whose law governs it, so governing law is an input rather than something inferred from the client's address.
The build
No framework. About 38 KB of hand-written JS across two files, plus CSS: the calculation core (rates, fixings, compensation bands, day counting) and the DOM layer that renders the numbers and the three letters. Rates are plain data, updated by hand when a new table is published.
43 tests cover the calculator, the letter rendering and the one serverless endpoint. The only server-side piece is an allow-listed event counter with banded properties, so no amounts, invoice numbers or free text leave the page.
What I am not claiming
It is an estimating tool, not legal advice. Rates are dated and sourced on the page, and where a contract names its own law or rate, that is the one that counts. Read the letter before you send it.
What I would like to know
- Which country should the next batch cover: US, Canada or Australia?
- Has anyone here actually charged statutory interest and kept the client? I would like to hear how the conversation went.
- For member states where the recovery sum is not €40, tell me and I will correct the table.
Feedback of any kind is welcome, including "the answer for my country is wrong".