The calculation and notice engine behind a £500bn loan book.
A loan-administration firm responsible for more than £500bn in assets needed the figures at the heart of its business to be exact, auditable, and safe to change. We built and remediated the API that produces them: interest, payment-in-kind schedules, rate calculations, payment dates, and the notices that go out to borrowers and lenders.
The challenge
Our client administers loans on behalf of lenders across many facilities and jurisdictions. The numbers they produce sit at the centre of that work. Interest, payment-in-kind schedules, fees and payment dates all have to be right, because every figure ends up in a notice to a borrower or a lender, and a mistake is expensive in both money and trust.
Some of the existing calculations needed putting right, and the firm could not simply switch them off while that happened. They needed the figures corrected, proven against known results, and rolled out in a way that let the business move across at its own pace, without any loss of confidence in what was already running.
What we did
We built the calculation and document API on Azure Functions in Python, covering interest for lenders and facilities, payment-in-kind schedules, risk-free-rate calculations, and the full set of payment dates the business runs on. Where calculations needed remediating, we delivered corrected versions alongside the originals rather than in place of them, so the firm could verify the new results and migrate when it was ready.
Correctness is the whole point of a system like this, so we pinned it down with tests. Close to 1,900 automated tests cover the calculations and date rules, which means a change can be made and its effect understood before it reaches anyone. Notices to borrowers and lenders are generated as branded PDFs through an Azure Service Bus pipeline, with each facility agent's own logo applied. Every release moves through five environments, from Dev to Production, gated by tests, a route-registration check and a mandatory changelog entry.
- Interest, payment-in-kind, risk-free-rate and fee calculations, with corrected versions run alongside the originals for a safe migration
- Payment-date generation for interest payment, first payment, repayment and fee schedules
- Borrower and lender notices produced as branded PDFs through an Azure Service Bus pipeline
- Close to 1,900 automated tests pinning every calculation and date rule
- A five-environment release pipeline, from Dev to Production, gated by tests, route checks and a mandatory changelog
The result
The firm has a calculation and notice platform it can trust with a £500bn book. The remediated figures match their expected results and are held in place by the test suite, so the business can change what it needs to without putting at risk what already works. Releases are routine: a tagged version moves from one environment to the next, each step tested, checked and recorded, with a clear way back if it is ever needed.
Built for work that has to be right.
Calculation-heavy systems, designed to be correct, tested, and safe to change.
Start a conversation