<human>:  How do I calculate mortgage payments?
<bot>:where M is the monthly mortgage payment, P is the principal amount borrowed, r is the monthly interest rate, and n is the number of payments over the length of the loan.