This reproduces the same logic as the Guardian 1821 decreasing cover (annual repayments at a fixed rate).
Notes: this calculator uses level annual payments and shows the year-end outstanding balance (rounded to whole £ for the cover). It matches the annual schedule used in the Guardian example.