 A mortgage is a form of annuity (from the perspective of the lender), and the calculation of the periodic payments is based on the time value of money formulas.Certain details may be specific to different locations