The EMI formula
The instalment is fixed by three inputs: the principal P, the monthly interest rate r (annual rate divided by 12), and the number of months n. EMI = P × r × (1 + r)^n ÷ ((1 + r)^n − 1). Because the rate applies to the shrinking outstanding balance, the interest portion falls every month while the principal portion rises to keep the total constant.