Mortgage calculator code for Canadians
Mortgage calculator JavaScript code explained Calculateur d'emprunt en français 

1 Stop Mortgage Calculator - Calculate your Mortgage payments in Seconds!
Mortgage Calculator Code - Part 5, Canadian mortgage calculations - 2

Mortgage calculator code

Part 5
Canadian mortgage calculator - 2

In the fourth installment of our explanation of this Mortgage calculator code series, we finished by saying that the mortgage formula had 2 parts, the first part was to set the Interest Rate (IntRate)

IntRate = Math.pow((1+AnnualIntRate/2),(2/12)) - 1

and the second part was the basic mortgage formula:

Pa = (PrValue * IntRate) / (1 - Math.pow(1 + IntRate, -Period))

In order to get the correct canadian interest calculations we have to adjust everything to our payment cycle, which implies that we also have to adjust the period to our payment cycle... like this:

IntRate = (Math.pow((1+AnnualIntRate/2),(2/12)) - 1)

Pa = (PrValue * IntRate) / (1 - Math.pow (1 + IntRate, - (Period * PPay)))

If this formula was for monthly mortgage payments, PPay would be 12; for bi-weekly payment, PPay would be 24; and for accelerated bi-weekly payments PPay would be 26.

Thanks to KC Lee, from Ontario, for correcting a the above formula.


Need a mortgage calculator for your website? 4 ready-to-use mortgage calculators that you can put on your website or for offline use!


Mortgage Calculators Products Services Help About Us Site Map

© Copyright (C) 2003-2010 by Dominique Peladeau • 1stop-mortgagecalculator.com.
All Rights Reserved
886 de L'Epee ave., Outremont, QC, H3V 3V3 • (514) 571-9747 (9-5 EST)
Contact us

1 stop mortgage calculator code logo