M = P [ i(1 + i)^n ] / [ (1 + i)^n – 1 ] where P = loan amount, i = monthly interest rate, n = number of months.