It calculates the monthly payment based on: interest rate number of years (mortgage length) amount borrowed