Inputs and calculation
The calculator has three fields. Loan Amount is the amount of an unsecured personal loan that you want to borrow, entered in pounds. Annual Interest Rate is the percentage that the calculation applies for one year. Loan Term is the repayment period in years. The script multiplies the entered years by 12, so a term such as 2.5 produces 30 monthly payments even though the label says years. Each change triggers a fresh calculation. The result assumes one equal payment every month and no change to the rate or term. It shows the calculated monthly payment, repeats the principal, and gives total interest and total payment. The pound amounts are displayed to two decimal places. Valid amount, rate and term entries may contain decimals; on blur, a field is reformatted with locale-appropriate grouping and decimal separators only when the formatted value preserves the entered number. These fields do not ask about income, existing debts, fees, payment dates, or the reason for borrowing. The result is therefore a repayment illustration, not a lender quote, affordability decision, or credit approval.