The formula for mortgage payment is:
M = P [ i(1 + i)^n ] / [ (1 + i)^n – 1]
Where:
M = Monthly mortgage payment
P = The principal, or amount of the loan
i = The interest rate per month
n = The number of months in the mortgage term