Monthly repayment amount = principal*monthly interest rate*[(1+monthly interest rate)^n/[(1+monthly interest rate)^n-1]
where n in the formula Indicates the number of months of the loan, ^n represents the nth power, such as ^240, which represents the 240th power (loan for 20 years, 240 months) Monthly interest rate = annual interest rate / 12
Total interest = monthly repayment amount *Loan number of months-principal