Loan Calculator Platform Architecture
Loan calculators look simple from the outside. The engineering complexity is in accuracy, compliance, and distribution.
Amortisation Calculation Engine
The core engine must handle multiple amortisation methods: standard declining-balance (US standard), rule-of-78s (legacy instalment loans), interest-only periods (mortgage products), and balloon/bullet structures. All calculation parameters (principal, rate, term, fees, compounding frequency) are logged at calculation time, not reconstructed, so every output is fully reproducible for regulatory audit.
APR and APRC Calculation
For US products, the Annual Percentage Rate must be calculated per TILA/Regulation Z, incorporating origination fees, points, and mandatory insurance into the finance charge. For UK and EU products, the Annual Percentage Rate of Charge follows FCA/EU rules with different fee inclusion logic. The engine enforces the correct standard per jurisdiction rather than applying a single formula globally.
Prepayment and Early Settlement Modelling
Products targeting the UK market must calculate settlement figures under the Consumer Credit Act early settlement rules. US products require prepayment penalty calculations where applicable and the remaining balance schedule for refi comparisons. The engine exposes an amortisation schedule API that returns period-by-period principal/interest splits, outstanding balance, and cumulative cost, driving both the UI display and downstream origination system feeds.
Embeddable Widget Infrastructure
Where calculators are distributed to third-party sites (dealer portals, broker aggregators, partner marketplaces), the widget layer handles cross-origin embedding, parameterisation via URL config or postMessage, and white-label theming without exposing the core calculation API. Rate inputs can be pushed from the host platform in real time so the calculator always reflects current pricing without a full page reload.