Formula: M = P [r(1+r)^n] / [(1+r)^n - 1] where r = annual rate / compounding periods, n = total number of payments.