Script to calculate mortgage repayments.