To calculate statutory interest on an overdue invoice, you need three things: the invoice amount, the date payment was due, and today's date (or the date you want to calculate up to).
The formula is: daily interest = invoice amount × statutory rate ÷ 365. Multiply the daily interest by the number of days overdue. For example, a £5,000 invoice at 12% (BoE 4% + 8%) overdue by 90 days: £5,000 × 0.12 ÷ 365 × 90 = £147.95.
If the Bank of England rate changed during the overdue period, you need to calculate each period separately at the applicable rate and add them together. The calculator above handles this automatically.