The Canadian Mortgage calculator is based on the information from the Calculate your Mortgage Payments page of Pat Pelletier. The reverse formula is from Mike Morley.
This calculator assumes semi-annual compounding.