How it is calculated
With an amortized loan you pay the same amount every month. Early payments are mostly interest, later ones mostly principal. The payment comes from the annuity formula with a monthly rate equal to the annual rate divided by 12. The total is the payment times the number of months, and the interest is the total minus the amount borrowed.
payment = P × r ÷ (1 − (1 + r)^−n), where r = annual rate ÷ 12 and n = number of months


