The rate is not today's base rate. That is the detail nearly every calculator online gets wrong, and it produces a figure the other side's solicitor will spot.
Under the UK's Late Payment of Commercial Debts (Interest) Act 1998, statutory interest is 8 percentage points above the Bank of England base rate in force on the reference date. The reference date is 31 December for debts that fall late between January and June, and 30 June for debts that fall late between July and December. Whatever that rate was, it applies for the whole six-month window, even if the Bank moves in the middle of it.
The EU directive works the same way, off the ECB main refinancing rate on 1 January or 1 July, and adds a €40 minimum for recovery costs. The UK adds fixed compensation of £40, £70 or £100 depending on the size of the invoice, once per invoice rather than per reminder.
Interest is simple: debt, times the annual rate, divided by 365, times the days late. It runs from the day after the due date, so an invoice due today is not late today.