
{"id":2925,"date":"2025-10-01T14:35:05","date_gmt":"2025-10-01T14:35:05","guid":{"rendered":"https:\/\/alpfinance.ca\/?page_id=2925"},"modified":"2025-10-01T15:01:47","modified_gmt":"2025-10-01T15:01:47","slug":"multi-unit-mortgage","status":"publish","type":"page","link":"https:\/\/alpfinance.ca\/en\/multi-unit-mortgage\/","title":{"rendered":"Multi-unit mortgage"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2925\" class=\"elementor elementor-2925\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8dedcdf page-header e-flex e-con-boxed e-con e-parent\" data-id=\"8dedcdf\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;position&quot;:&quot;fixed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-3553ad4 e-con-full e-flex e-con e-child\" data-id=\"3553ad4\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-cd1e9ee e-con-full e-flex e-con e-child\" data-id=\"cd1e9ee\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-18573bc elementor-widget elementor-widget-heading\" data-id=\"18573bc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">Multi-unit mortgage<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-bfaf4a0 page-first-block e-flex e-con-boxed e-con e-parent\" data-id=\"bfaf4a0\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-77994ad e-con-full e-flex e-con e-child\" data-id=\"77994ad\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-53b6d93 elementor-widget elementor-widget-text-editor\" data-id=\"53b6d93\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<h3 style=\"text-align: center; margin-bottom: 0;\">Finance an income property and grow your real estate portfolio<\/h3>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dcfc8df elementor-widget__width-initial elementor-widget elementor-widget-text-editor\" data-id=\"dcfc8df\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>Buying a multi-unit property is a proven strategy for generating stable rental income and growing your capital. With a multi-unit mortgage, you have access to specialized financing designed for properties with two or more units. This type of loan allows you to carry out a sustainable project, diversify your real estate investments, and optimize your portfolio.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-930e663 e-con-full e-flex e-con e-child\" data-id=\"930e663\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-0d507c8 e-con-full e-flex elementor-invisible e-con e-child\" data-id=\"0d507c8\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;animation&quot;:&quot;bounceInLeft&quot;,&quot;animation_mobile&quot;:&quot;bounceIn&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5653bb9 elementor-widget elementor-widget-image\" data-id=\"5653bb9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/epargne_retraite_03-1024x683.jpg\" class=\"attachment-large size-large wp-image-2928\" alt=\"\" srcset=\"https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/epargne_retraite_03-1024x683.jpg 1024w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/epargne_retraite_03-300x200.jpg 300w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/epargne_retraite_03-768x512.jpg 768w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/epargne_retraite_03-1536x1024.jpg 1536w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/epargne_retraite_03-2048x1366.jpg 2048w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/epargne_retraite_03-450x300.jpg 450w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-cd4ce32 e-con-full alp-title-spacing e-flex e-con e-child\" data-id=\"cd4ce32\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f472eed elementor-widget elementor-widget-text-editor\" data-id=\"f472eed\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default elementor-inline-editing pen\" style=\"font-weight: 400;\" contenteditable=\"true\" data-elementor-setting-key=\"title\" data-pen-placeholder=\"\u00c9crivez ici...\">What is a multi-unit mortgage?<\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4f56eae elementor-widget__width-initial elementor-widget elementor-widget-text-editor\" data-id=\"4f56eae\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>A multi-unit mortgage is a mortgage loan intended for the purchase, construction, or refinancing of an income property with several residential units. Unlike a traditional residential mortgage, this product takes into account the property&#8217;s potential to generate rental income and the viability of your investment project.<\/p><p>Key features:<\/p><ul><li>Down payment generally higher than for a primary residence<\/li><li>Projected rental income is included in the analysis of the file<\/li><li>Interest rates vary depending on the type of property, the size of the project, and your financial profile<\/li><li>Financing options with or without mortgage insurance depending on the value and risk<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-29a669c e-con-full e-flex e-con e-child\" data-id=\"29a669c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-a584521 e-con-full e-flex elementor-invisible e-con e-child\" data-id=\"a584521\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;animation&quot;:&quot;fadeInRight&quot;,&quot;animation_mobile&quot;:&quot;fadeIn&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3428c77 elementor-widget elementor-widget-image\" data-id=\"3428c77\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/hypotheque_biens_02-scaled-1-1024x683.jpg\" class=\"attachment-large size-large wp-image-2930\" alt=\"\" srcset=\"https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/hypotheque_biens_02-scaled-1-1024x683.jpg 1024w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/hypotheque_biens_02-scaled-1-300x200.jpg 300w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/hypotheque_biens_02-scaled-1-768x512.jpg 768w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/hypotheque_biens_02-scaled-1-1536x1024.jpg 1536w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/hypotheque_biens_02-scaled-1-2048x1366.jpg 2048w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/hypotheque_biens_02-scaled-1-450x300.jpg 450w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-aa25947 e-con-full alp-title-spacing animated-fast e-flex elementor-invisible e-con e-child\" data-id=\"aa25947\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;animation&quot;:&quot;fadeInLeft&quot;,&quot;animation_mobile&quot;:&quot;zoomIn&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0375d73 elementor-widget elementor-widget-text-editor\" data-id=\"0375d73\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default elementor-inline-editing pen\" style=\"font-weight: 400;\" contenteditable=\"true\" data-elementor-setting-key=\"title\" data-pen-placeholder=\"\u00c9crivez ici...\">Why choose a multi-property mortgage?<\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e741969 elementor-widget__width-initial elementor-widget elementor-widget-text-editor\" data-id=\"e741969\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>With a multi-unit mortgage, you can:<\/p><ul><li>Finance the purchase of a multi-unit rental property<\/li><li>Generate regular passive income from rent<\/li><li>Diversify your investments beyond traditional residential real estate<\/li><li>Take advantage of credit leverage to accelerate your capital growth<\/li><li>Optimize your real estate portfolio with a product designed for investors<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-d86e2a7 e-con-full alp-title e-flex e-con e-child\" data-id=\"d86e2a7\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d3f5afd elementor-widget elementor-widget-text-editor\" data-id=\"d3f5afd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<h2 style=\"text-align: center;\">The advantages of a multi-unit mortgage<\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-6d10f6c e-con-full e-flex e-con e-child\" data-id=\"6d10f6c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-44d93df e-con-full e-flex elementor-invisible e-con e-child\" data-id=\"44d93df\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;animation&quot;:&quot;fadeInDown&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0828864 elementor-widget elementor-widget-image\" data-id=\"0828864\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1\" height=\"1\" src=\"https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/09\/croissance-optimisation-colored.svg\" class=\"attachment-large size-large wp-image-1705\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6286dc5 elementor-widget elementor-widget-text-editor\" data-id=\"6286dc5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p style=\"text-align: center; font-size: 24px; line-height: 1.4; margin-bottom: 13px;\">Growth<\/p><p style=\"text-align: center;\">Increase your assets and benefit from the long-term appreciation of your properties.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-1f0af8e e-con-full e-flex elementor-invisible e-con e-child\" data-id=\"1f0af8e\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;animation&quot;:&quot;fadeInDown&quot;,&quot;animation_delay&quot;:200}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-19fce15 elementor-widget elementor-widget-image\" data-id=\"19fce15\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1\" height=\"1\" src=\"https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/09\/diversification-colored.svg\" class=\"attachment-large size-large wp-image-1731\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9f11404 elementor-widget elementor-widget-text-editor\" data-id=\"9f11404\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p style=\"text-align: center; font-size: 24px; line-height: 1.4; margin-bottom: 13px;\">Diversification<\/p><p style=\"text-align: center;\">Spread your investments across different types of properties.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4576c58 e-con-full e-flex elementor-invisible e-con e-child\" data-id=\"4576c58\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;animation&quot;:&quot;fadeInDown&quot;,&quot;animation_delay&quot;:400}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-460fe53 elementor-widget elementor-widget-image\" data-id=\"460fe53\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1\" height=\"1\" src=\"https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/09\/levier-colored.svg\" class=\"attachment-large size-large wp-image-1715\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8ffa331 elementor-widget elementor-widget-text-editor\" data-id=\"8ffa331\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p style=\"text-align: center; font-size: 24px; line-height: 1.4; margin-bottom: 13px;\">Leverage<\/p><p style=\"text-align: center;\">Maximize your investments with tailored financing<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-7491d57 e-con-full e-flex elementor-invisible e-con e-child\" data-id=\"7491d57\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;animation&quot;:&quot;fadeInDown&quot;,&quot;animation_delay&quot;:400}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e95ee62 elementor-widget elementor-widget-image\" data-id=\"e95ee62\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1\" height=\"1\" src=\"https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/09\/souple-colored.svg\" class=\"attachment-large size-large wp-image-1725\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-61ff9bf elementor-widget elementor-widget-text-editor\" data-id=\"61ff9bf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p style=\"text-align: center; font-size: 24px; line-height: 1.4; margin-bottom: 13px;\">Flexibility<\/p><p style=\"text-align: center;\">Access customized solutions from different mortgage lenders<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-aa63f44 e-con-full e-flex e-con e-child\" data-id=\"aa63f44\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-596bc92 e-con-full e-flex elementor-invisible e-con e-child\" data-id=\"596bc92\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;animation&quot;:&quot;fadeInRight&quot;,&quot;animation_mobile&quot;:&quot;fadeIn&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0cf0cff elementor-widget elementor-widget-image\" data-id=\"0cf0cff\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/fonds_placement_02-scaled-1-1024x683.jpg\" class=\"attachment-large size-large wp-image-2932\" alt=\"\" srcset=\"https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/fonds_placement_02-scaled-1-1024x683.jpg 1024w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/fonds_placement_02-scaled-1-300x200.jpg 300w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/fonds_placement_02-scaled-1-768x512.jpg 768w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/fonds_placement_02-scaled-1-1536x1025.jpg 1536w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/fonds_placement_02-scaled-1-2048x1366.jpg 2048w, https:\/\/alpfinance.ca\/wp-content\/uploads\/2025\/10\/fonds_placement_02-scaled-1-450x300.jpg 450w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-0e11b8b e-con-full alp-title-spacing animated-fast e-flex elementor-invisible e-con e-child\" data-id=\"0e11b8b\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;animation&quot;:&quot;fadeInLeft&quot;,&quot;animation_mobile&quot;:&quot;zoomIn&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3835107 elementor-widget elementor-widget-text-editor\" data-id=\"3835107\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default elementor-inline-editing pen\" style=\"font-weight: 400;\" contenteditable=\"true\" data-elementor-setting-key=\"title\" data-pen-placeholder=\"\u00c9crivez ici...\">Why work with us?<\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-75ca548 elementor-widget__width-initial mbzero elementor-widget elementor-widget-text-editor\" data-id=\"75ca548\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>Our multi-unit financing specialists work with a vast network of mortgage lenders to find the best product for your project. Whether you are purchasing a duplex, triplex, building with eight or more units, or refinancing an existing building, we will guide you through every step of the process with personalized mortgage solutions.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-90a9adb elementor-widget elementor-widget-button\" data-id=\"90a9adb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"\/en\/contact\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Talk to a multi-property mortgage advisor<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-80ecbcc e-con-full e-flex e-con e-child\" data-id=\"80ecbcc\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-61376ae e-con-full alp-title-spacing animated-fast e-flex elementor-invisible e-con e-child\" data-id=\"61376ae\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;animation&quot;:&quot;fadeInLeft&quot;,&quot;animation_mobile&quot;:&quot;zoomIn&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d470f86 elementor-widget elementor-widget-text-editor\" data-id=\"d470f86\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default elementor-inline-editing pen\" style=\"font-weight: 400;\" contenteditable=\"true\" data-elementor-setting-key=\"title\" data-pen-placeholder=\"\u00c9crivez ici...\">Plan your project<\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4673fde elementor-widget__width-initial mbzero elementor-widget elementor-widget-text-editor\" data-id=\"4673fde\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>Before you get started, use our mortgage calculator to estimate:<br \/><br \/><\/p><ul><li>Your mortgage payments<\/li><li>Your potential rental income<\/li><li>The overall profitability of your project<br \/><br \/><\/li><\/ul><p>This tool helps you compare mortgage rates, calculate your payments, and plan a solid investment.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-05637f2 elementor-widget elementor-widget-shortcode\" data-id=\"05637f2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n\t\t\t<div id=\"prosomo_calculators_1\" style=\"display: none;\">\n\n\t\t\t\t<script>\n\t\t\t\t\tvar prosomo_calculator_1_lang = \"en\";\n\n\t\t\t\t\tvar prosomo_calculator_1_dict = {};\n\n\t\t\t\t\tprosomo_calculator_1_dict['fr'] = {};\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['dollar_before'] = \"\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['dollar_after'] = \" $\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['number_thousand'] = \" \";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['number_decimal'] = \",\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['title'] = \"Calcul des versements hypoth\u00e9caires\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_price_of_property'] = \"Co\u00fbt de la propri\u00e9t\u00e9\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_down_payment'] = \"Mise de fonds\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_mortgage_amount'] = \"Montant de l'emprunt\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_interest_rate'] = \"Taux d'int\u00e9r\u00eat (%)\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_amortization_years'] = \"Amortissement (ans)\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_cmhc_iam'] = \"Je suis un...\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_first_time'] = \"Acheteur d'une premi\u00e8re maison\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_home_buyer'] = \"Acheteur immobilier\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_cmhc_property'] = \"Type de propri\u00e9t\u00e9\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_property_existing'] = \"Existante\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_property_new'] = \"Nouvelle construction\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_cmhc_amount'] = \"Co\u00fbt de l\u2019assurance pr\u00eat hypoth\u00e9caire\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['cmhc_error'] = \"La mise de fonds doit repr\u00e9senter au moins 5 % du co\u00fbt de la propri\u00e9t\u00e9.\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['show_more_button'] = \"Afficher le tableau complet\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['show_less_button'] = \"R\u00e9duire\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_5_years'] = \"5 ans\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_10_years'] = \"10 ans\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_15_years'] = \"15 ans\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_20_years'] = \"20 ans\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_25_years'] = \"25 ans\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_30_years'] = \"30 ans\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_payment_frequency'] = \"Fr\u00e9quence des versements\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_calculate'] = \"Calculer\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_payment_amount'] = \"Montant des versements\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_monthly_payment_chart'] = \"Afficher le tableau complet\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_month'] = \"Mois\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_year'] = \"Ann\u00e9e\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_interest'] = \"Int\u00e9r\u00eats\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_capital'] = \"Capital\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_residual_balance'] = \"Solde r\u00e9siduel\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_annual'] = \"Annuel\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_semi_annual'] = \"Semi annuel\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_monthly'] = \"Mensuel\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_every_2_weeks'] = \"Aux 2 semaines\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_everyweek'] = \"\u00c0 la semaine\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_every_2_weeks_acc'] = \"Acc\u00e9l\u00e9r\u00e9 - aux 2 semaines\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_everyweek_acc'] = \"Acc\u00e9l\u00e9r\u00e9 - \u00e0 la semaine\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_periodic_payment'] = \"Paiement p\u00e9riodique\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_interest_error_1'] = \"Le taux d'int\u00e9r\u00eat (\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_interest_error_2'] = \") cause une erreur!\\nEntrer les donn\u00e9es \u00e0 nouveau s.v.p.\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_amortization_error_1'] = \"L'amortissement (\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_amortization_error_2'] = \") doit \u00eatre plus grand que le terme (\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_amortization_error_3'] = \") !\\nEntrer les donn\u00e9es \u00e0 nouveau s.v.p.\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_error'] = \" ERREUR \";\n\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_down_payment'] = \"Mise de fonds\";\n\n\n\t\t\t\t\tprosomo_calculator_1_dict['en'] = {};\n\t\t\t\t\tprosomo_calculator_1_dict['en']['dollar_before'] = \"$\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['dollar_after'] = \"\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['number_thousand'] = \",\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['number_decimal'] = \".\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['en']['title'] = \"Calculate Mortgage Payments\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_price_of_property'] = \"Price of property\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_down_payment'] = \"Down payment\t\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_mortgage_amount'] = \"Mortgage amount\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_interest_rate'] = \"Interest rate (%)\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_amortization_years'] = \"Amortization (years)\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_cmhc_iam'] = \"I am a...\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_first_time'] = \"First-time homebuyer\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_home_buyer'] = \"Homebuyer\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_cmhc_property'] = \"Property type\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_property_existing'] = \"Existing\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_property_new'] = \"New build\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_cmhc_amount'] = \"Mortgage loan insurance cost\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['cmhc_error'] = \"The down payment must be at least 5% of the property\u2019s cost.\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['show_more_button'] = \"Show full table\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['show_less_button'] = \"Show less\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_5_years'] = \"5 years\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_10_years'] = \"10 years\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_15_years'] = \"15 years\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_20_years'] = \"20 years\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_25_years'] = \"25 years\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_30_years'] = \"30 years\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_payment_frequency'] = \"Payment frequency\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_monthly'] = \"Monthly\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_calculate'] = \"Calculate\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_payment_amount'] = \"Payment amount\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_monthly_payment_chart'] = \"Show full table\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_month'] = \"Month\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_year'] = \"Year\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_interest'] = \"Interest\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_capital'] = \"Capital\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_residual_balance'] = \"Residual balance\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_annual'] = \"Annual\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_semi_annual'] = \"Semi annual\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_monthly'] = \"Monthly\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_every_2_weeks'] = \"Every two weeks\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_everyweek'] = \"Weekly\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_every_2_weeks_acc'] = \"Accelerated - every 2 weeks\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_everyweek_acc'] = \"Accelerated - weekly\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_periodic_payment'] = \"Periodic payment\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_interest_error_1'] = \"The interest rate (\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_interest_error_2'] = \") causes an error!\\nPlease enter the data again.\";\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_error'] = \" ERROR \";\n\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_amortization_error_1'] = \"The depreciation (\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_amortization_error_2'] = \") must be greater than the term (\";\n\t\t\t\t\tprosomo_calculator_1_dict['fr']['text_amortization_error_3'] = \")!\\nPlease enter the data again.\";\n\n\t\t\t\t\tprosomo_calculator_1_dict['en']['text_down_payment'] = \"Down payment\";\n\n\t\t\t\t\tfunction prosomo_calculator_1_showString(key) {\n\n\t\t\t\t\t\tif (window.prosomo_calculator_1_dict[window.prosomo_calculator_1_lang][key]) {\n\t\t\t\t\t\t\tdocument.write(window.prosomo_calculator_1_dict[window.prosomo_calculator_1_lang][key]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\/\/document.write(\"ERROR!!!!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction prosomo_calculator_1_returnString(key) {\n\n\t\t\t\t\t\tif (window.prosomo_calculator_1_dict[window.prosomo_calculator_1_lang][key]) {\n\t\t\t\t\t\t\treturn window.prosomo_calculator_1_dict[window.prosomo_calculator_1_lang][key];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\/\/return \"ERR!!!!\";\n\t\t\t\t\t\t\treturn \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction prosomo_calculator_1_Decimals(entry, decim) {\n\n\t\t\t\t\t\tentry += \"\"; \/\/ Make sure that input is a text string\n\t\t\t\t\t\tvar original_entry = entry; \/\/ Keep the original of the string\n\t\t\t\t\t\tvar amount = parseFloat(entry); \/\/ Take the floating value\n\t\t\t\t\t\tvar valpos = \"\";\n\t\t\t\t\t\tvar valdec = \"\";\n\t\t\t\t\t\tif (isNaN(amount)) \/\/ Return entry value if not convertible\n\t\t\t\t\t\t\treturn original_entry;\n\t\t\t\t\t\tif (decim == 2) {\n\t\t\t\t\t\t\tamount = Math.round(100 * amount); \/\/ Put amount under, rounded to the penny\n\t\t\t\t\t\t\tvar value;\n\t\t\t\t\t\t\tif (amount < 10) {\n\t\t\t\t\t\t\t\tvalue = \"00\" + amount; \/\/ Put amount in value and put zeros if necessary\n\t\t\t\t\t\t\t} else if (amount < 100) {\n\t\t\t\t\t\t\t\tvalue = \"0\" + amount;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tvalue = \"\" + amount;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvalpos = value.substring(0, value.length - 2);\n\t\t\t\t\t\t\tvaldec = value.substring(value.length - 2, value.length);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvalpos = \"\" + Math.round(amount); \/\/ Express the amount\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvar numberBefore = \"\";\n\t\t\t\t\t\tvar numberMiddle = \"\";\n\t\t\t\t\t\tif (valpos.length > 6) {\n\t\t\t\t\t\t\tnumberBefore = valpos.substring(0, (valpos.length - (parseInt(valpos.length \/ 3) * 3))) + prosomo_calculator_1_returnString('number_thousand');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (valpos.length > 3) {\n\t\t\t\t\t\t\tnumberMiddle = valpos.substring(valpos.length - 6, valpos.length - 3) + prosomo_calculator_1_returnString('number_thousand');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvar numberEnd = valpos.substring(valpos.length - 3, valpos.length);\n\t\t\t\t\t\tvar newNumber = numberBefore + numberMiddle + numberEnd;\n\t\t\t\t\t\tif (decim == 2) {\n\t\t\t\t\t\t\tnewNumber = newNumber + prosomo_calculator_1_returnString('number_decimal') + valdec;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnewNumber = prosomo_calculator_1_returnString('dollar_before') + newNumber + prosomo_calculator_1_returnString('dollar_after');\n\n\t\t\t\t\t\treturn newNumber; \/\/ Returns the string in monetary format\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction prosomo_calculator_1_stripText(text) { \/\/ Remove commas, spaces and $\n\t\t\t\t\t\ttext += \"\";\n\t\t\t\t\t\tvar original_text = text;\n\t\t\t\t\t\twhile (text.indexOf(\"$\") == 0 || text.indexOf(\" \") == 0) {\n\t\t\t\t\t\t\ttext = text.substring(1, text.length);\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (text.indexOf(\",\") != -1) {\n\t\t\t\t\t\t\tvar text = \"\" + text.substring(0, text.indexOf(\",\")) + text.substring(text.indexOf(\",\") + 1, text.length);\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (text.indexOf(\" \") != -1) {\n\t\t\t\t\t\t\tvar text = \"\" + text.substring(0, text.indexOf(\" \")) + text.substring(text.indexOf(\" \") + 1, text.length);\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (text.indexOf(\"$\") != -1) {\n\t\t\t\t\t\t\tvar text = \"\" + text.substring(0, text.indexOf(\"$\")) + text.substring(text.indexOf(\"$\") + 1, text.length);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isNaN(text)) {\n\t\t\t\t\t\t\treturn original_text;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn text;\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction prosomo_calculator_1_switchCharacter(item, oldCharacter, newCharacter) { \/\/ change one character by another\n\t\t\t\t\t\tvar _ONE = 1;\n\t\t\t\t\t\tvar _ret = \"\";\n\t\t\t\t\t\tvar _flag = 0;\n\t\t\t\t\t\tvar _item = item.split(\"\");\n\t\t\t\t\t\tfor (var i = 0; i < _item.length; i++) {\n\t\t\t\t\t\t\tif (!_flag && _item[i] == oldCharacter) {\n\t\t\t\t\t\t\t\t_item[i] = newCharacter;\n\t\t\t\t\t\t\t\t_flag = _ONE;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t_ret += _item[i];\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn (_ret);\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction prosomo_calculator_1_getFieldValue(strFieldName) { \/\/ go get the variables of $_get\n\n\t\t\t\t\t\tvar strFieldValue;\n\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar strFieldValue2 = jQuery('#prosomo_calculator_1_' + strFieldName).val();\n\n\t\t\t\t\t\tstrFieldValue = strFieldValue2;\n\n\t\t\t\t\t\treturn strFieldValue;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction prosomo_calculator_1_calculate2(type) { \/\/ get to work\n\n\t\t\t\t\t\t\/* start propertyCost *\/\n\n\t\t\t\t\t\tvar propertyCost = (prosomo_calculator_1_getFieldValue(\"propertyCost\")); \/\/ go get the loan amount\n\t\t\t\t\t\ttemp3 = prosomo_calculator_1_switchCharacter(propertyCost, \"+\", \"\");\n\t\t\t\t\t\tpropertyCost = prosomo_calculator_1_stripText(temp3);\n\t\t\t\t\t\tif (propertyCost == \"\") {\n\t\t\t\t\t\t\tpropertyCost = \"100000\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.propertyCost.value = prosomo_calculator_1_Decimals(propertyCost, 0);\n\t\t\t\t\t\tvar temp1 = document.calcMonthlyAmortization_1.propertyCost.value;\n\t\t\t\t\t\tpropertyCost = prosomo_calculator_1_stripText(temp1);\n\n\t\t\t\t\t\t\/* end propertyCost *\/\n\n\t\t\t\t\t\t\/* start downPayment *\/\n\n\t\t\t\t\t\tvar downPayment = (prosomo_calculator_1_getFieldValue(\"downPayment\")); \/\/ go get the loan amount\n\t\t\t\t\t\ttemp3 = prosomo_calculator_1_switchCharacter(downPayment, \"+\", \"\");\n\t\t\t\t\t\tdownPayment = prosomo_calculator_1_stripText(temp3);\n\t\t\t\t\t\tif (downPayment == \"\") {\n\t\t\t\t\t\t\tdownPayment = \"10000\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.downPayment.value = prosomo_calculator_1_Decimals(downPayment, 0);\n\t\t\t\t\t\tvar temp1 = document.calcMonthlyAmortization_1.downPayment.value;\n\t\t\t\t\t\tdownPayment = prosomo_calculator_1_stripText(temp1);\n\n\t\t\t\t\t\t\/* end downPayment *\/\n\n\t\t\t\t\t\tvar loanAmount = (prosomo_calculator_1_getFieldValue(\"loanAmount\")); \/\/ go get the loan amount\n\t\t\t\t\t\ttemp3 = prosomo_calculator_1_switchCharacter(loanAmount, \"+\", \"\");\n\t\t\t\t\t\tloanAmount = prosomo_calculator_1_stripText(temp3);\n\t\t\t\t\t\tif (loanAmount == \"\") {\n\t\t\t\t\t\t\t\/\/loanAmount = \"100000\";\n\t\t\t\t\t\t\tloanAmount = propertyCost - downPayment;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.loanAmount.value = prosomo_calculator_1_Decimals(loanAmount, 0);\n\t\t\t\t\t\tvar temp1 = document.calcMonthlyAmortization_1.loanAmount.value;\n\t\t\t\t\t\tloanAmount = prosomo_calculator_1_stripText(temp1);\n\n\t\t\t\t\t\tvar amortization = (prosomo_calculator_1_getFieldValue(\"amortization\")); \/\/ go for the depreciation\n\t\t\t\t\t\tif (amortization == \"\") {\n\t\t\t\t\t\t\tamortization = \"300\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.amortization.value = amortization;\n\n\t\t\t\t\t\tvar interest2 = (prosomo_calculator_1_getFieldValue(\"interest\")); \/\/ fetch the interest rate\n\t\t\t\t\t\tif (interest2 == \"\") {\n\t\t\t\t\t\t\tinterest2 = \"6,5 %\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.interest.value = interest2;\n\t\t\t\t\t\ttemp3 = prosomo_calculator_1_switchCharacter(interest2, \",\", \".\");\n\t\t\t\t\t\tinterest = parseFloat(temp3);\n\n\t\t\t\t\t\tvar numberPayments = (prosomo_calculator_1_getFieldValue(\"periodepaym\")); \/\/ go get the type of payment\n\t\t\t\t\t\tif (numberPayments == \"\") {\n\t\t\t\t\t\t\tnumberPayments = \"12\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == \"1\") {\n\t\t\t\t\t\t\ta = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == \"2\") {\n\t\t\t\t\t\t\ta = 1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == \"12\") {\n\t\t\t\t\t\t\ta = 2;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == \"26\") {\n\t\t\t\t\t\t\ta = 3;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == \"52\") {\n\t\t\t\t\t\t\ta = 4;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == \"26a\") {\n\t\t\t\t\t\t\ta = 5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == \"52a\") {\n\t\t\t\t\t\t\ta = 6;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.periodepaym.options[a].selected = true;\n\n\t\t\t\t\t\tprosomo_calculator_1_calculate(type);\n\n\t\t\t\t\t\treturn true;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction financial(x) {\n\t\t\t\t\t\treturn Number.parseFloat(x).toFixed(2);\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction prosomo_calculator_1_calculate(type) { \/\/ get to work\n\n\t\t\t\t\t\tvar numberPayments = \"\" + document.calcMonthlyAmortization_1.periodepaym.options[document.calcMonthlyAmortization_1.periodepaym.selectedIndex].value;\n\t\t\t\t\t\tvar termYears = 0;\n\t\t\t\t\t\tvar termPeriod = 0;\n\t\t\t\t\t\tvar amortizationYears = parseFloat((document.calcMonthlyAmortization_1.amortization.value) \/ 12);\n\t\t\t\t\t\tvar periodTotal = amortizationYears * parseInt(numberPayments);\n\t\t\t\t\t\tvar loanAmountValue = document.calcMonthlyAmortization_1.loanAmount.value;\n\t\t\t\t\t\tvar propertyCostAmount = document.calcMonthlyAmortization_1.propertyCost.value;\n\t\t\t\t\t\tvar calcPayments = document.calcMonthlyAmortization_1.paymentPeriod_1.value;\n\n\t\t\t\t\t\tvar temp3 = document.calcMonthlyAmortization_1.interest.value;\n\t\t\t\t\t\ttemp3 = prosomo_calculator_1_switchCharacter(temp3, \",\", \".\");\n\t\t\t\t\t\tinterestRate = parseFloat(temp3);\n\n\t\t\t\t\t\t\/\/ get rid of $ signs of entry\n\n\t\t\t\t\t\tvar temp1 = loanAmountValue;\n\t\t\t\t\t\tloanAmountValue = prosomo_calculator_1_stripText(temp1);\n\n\t\t\t\t\t\tvar temp4 = prosomo_calculator_1_stripText(propertyCostAmount);\n\t\t\t\t\t\tpropertyCostAmount = temp4;\n\t\t\t\t\t\tvar loanpercent = financial(1 - (loanAmountValue \/ propertyCostAmount)) * 100;\n\t\t\t\t\t\tvar cmhc_amount = 0;\n\t\t\t\t\t\tif (loanpercent < 5) {\n\t\t\t\t\t\t\tcmhc_amount = \"error\";\n\t\t\t\t\t\t\tdocument.getElementById(\"cmhc_error\").innerText = prosomo_calculator_1_returnString('cmhc_error');\n\t\t\t\t\t\t} else if (loanpercent < 10) {\n\t\t\t\t\t\t\tcmhc_amount = financial(0.028 * loanAmountValue);\n\t\t\t\t\t\t\tdocument.getElementById(\"cmhc_error\").innerText = \"\";\n\t\t\t\t\t\t} else if (loanpercent < 15) {\n\t\t\t\t\t\t\tcmhc_amount = financial(0.031 * loanAmountValue);\n\t\t\t\t\t\t\tdocument.getElementById(\"cmhc_error\").innerText = \"\";\n\t\t\t\t\t\t} else if (loanpercent < 20) {\n\t\t\t\t\t\t\tcmhc_amount = financial(0.04 * loanAmountValue);\n\t\t\t\t\t\t\tdocument.getElementById(\"cmhc_error\").innerText = \"\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcmhc_amount = 0;\n\t\t\t\t\t\t\tdocument.getElementById(\"cmhc_error\").innerText = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcmhc_amount = parseFloat(cmhc_amount);\n\t\t\t\t\t\tvar loanwithcmhc = parseFloat(loanAmountValue) + cmhc_amount;\n\n\n\n\n\t\t\t\t\t\tvar temp2 = calcPayments;\n\t\t\t\t\t\ttemp2 = prosomo_calculator_1_switchCharacter(temp2, \",\", \".\");\n\t\t\t\t\t\tcalcPayments = prosomo_calculator_1_stripText(temp2);\n\n\t\t\t\t\t\tvar calcAmount = parseFloat(calcPayments);\n\t\t\t\t\t\tif (calcAmount != calcPayments && calcPayments > 0) {\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.paymentPeriod_1.value = prosomo_calculator_1_returnString('text_error');\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (((document.calcMonthlyAmortization_1.interest.value == null || document.calcMonthlyAmortization_1.interest.value.length == 0) && type != 'i') ||\n\t\t\t\t\t\t\t((document.calcMonthlyAmortization_1.loanAmount.value == null || document.calcMonthlyAmortization_1.loanAmount.value.length == 0) && type != 'p')) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tdiffcalc = 99999;\n\t\t\t\t\t\tnouvpaym = 0;\n\t\t\t\t\t\ttauxcalc = 0.09;\n\t\t\t\t\t\tif (type == \"i\" && calcPayments > 0) {\n\t\t\t\t\t\t\twhile (Math.abs(diffcalc) > 0.1) {\n\t\t\t\t\t\t\t\tnouvpaym = (parseFloat(loanAmountValue) * tauxcalc) \/ (1 - (1 \/ Math.pow((1 + tauxcalc), periodTotal)));\n\t\t\t\t\t\t\t\tdiffcalc = (calcPayments - nouvpaym);\n\t\t\t\t\t\t\t\tvar signe = (diffcalc) \/ Math.abs(diffcalc)\n\t\t\t\t\t\t\t\ttauxcalc = (0.01 * signe) * (Math.abs(diffcalc) > 500) + (0.0001 * signe) * (Math.abs(diffcalc) > 20) + (0.00001 * signe) * (Math.abs(diffcalc) > 10) + (0.000001 * signe) * (Math.abs(diffcalc) > 1) + (0.0000001 * signe) + tauxcalc;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tinterestRate = 2 * (Math.pow((1 + tauxcalc), parseInt(numberPayments) \/ 2) - 1);\n\t\t\t\t\t\t\tinterestRate = parseInt(interestRate * 1000000) \/ 10000;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (isNaN(interestRate)) { \/\/ Return entry string if not convertible:\n\t\t\t\t\t\t\talert(prosomo_calculator_1_returnString('text_interest_error_1') + temp3 + prosomo_calculator_1_returnString('text_interest_error_2'));\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (interestRate < 0.3) {\n\t\t\t\t\t\t\tinterestRate = interestRate * 100.0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttemp2 = \"\" + interestRate;\n\t\t\t\t\t\ttemp2 = prosomo_calculator_1_switchCharacter(temp2, \".\", \",\");\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.interest.value = temp2 + \" %\";\n\n\t\t\t\t\t\tinterestRate = interestRate \/ 100.0;\n\n\t\t\t\t\t\tvar interestCanada = Math.pow((1 + interestRate \/ 2), (2 \/ parseInt(numberPayments))) - 1;\n\t\t\t\t\t\tvar baseInterestCanada = Math.pow((1 + interestRate \/ 2), (2 \/ 12)) - 1;\n\t\t\t\t\t\tvar interest_USA = interestRate \/ parseInt(numberPayments);\n\t\t\t\t\t\tvar baseInterestUSA = interestRate \/ 12;\n\n\t\t\t\t\t\tif (type == \"p\" && interestCanada != 0) {\n\t\t\t\t\t\t\tcalcBasePayment = calcPayments;\n\t\t\t\t\t\t\tif ((numberPayments == '52a' || numberPayments == '26a') && interestCanada != 0) {\n\t\t\t\t\t\t\t\tvar calcBasePayment = calcPayments * (parseInt(numberPayments) \/ 13);\n\t\t\t\t\t\t\t\tvar loanAmountValue = (calcBasePayment \/ baseInterestCanada) * (1 - (1 \/ (Math.pow((1 + baseInterestCanada), (amortizationYears * 12)))));\n\t\t\t\t\t\t\t\t\/\/ pour US var loanAmountValue  = (calcBasePayment\/baseInterestUSA) * ( 1 - (1\/(Math.pow((1+baseInterestUSA),(amortizationYears*12))) ) ) ;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tvar loanAmountValue = (calcPayments \/ interestCanada) * (1 - (1 \/ (Math.pow((1 + interestCanada), (periodTotal)))));\n\t\t\t\t\t\t\t\t\/\/ pour US var loanAmountValue  = (calcPayments\/interest_USA) * ( 1 - (1\/(Math.pow((1+interest_USA),(periodTotal))) ) ) ;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.loanAmount.value = prosomo_calculator_1_Decimals(loanAmountValue, 0);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (type == \"p\" && interestCanada == 0) {\n\t\t\t\t\t\t\tvar loanAmountValue = (calcPayments * periodTotal);\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.loanAmount.value = prosomo_calculator_1_Decimals(loanAmountValue, 0);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar parsedLoanAmount = parseFloat(loanAmountValue);\n\t\t\t\t\t\tif (parsedLoanAmount != loanAmountValue) {\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.loanAmount.value = prosomo_calculator_1_returnString('text_error');\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.paymentPeriod_1.value = prosomo_calculator_1_returnString('text_error');\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (amortizationYears < termYears) {\n\t\t\t\t\t\t\talert(prosomo_calculator_1_returnString('text_amortization_error_1') + amortizationYears + prosomo_calculator_1_returnString('text_amortization_error_2') + termYears + prosomo_calculator_1_returnString('text_amortization_error_3'));\n\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.termebalcan.value = 0;\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.termeinterestCanada.value = 0;\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.paymentcan.value = 0;\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.intemprunttotcan.value = 0;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (interestCanada == 0) {\n\t\t\t\t\t\t\tvar paymentBaseCanada = loanwithcmhc \/ (amortizationYears * 12);\n\t\t\t\t\t\t\tvar paymentBaseUSA = paymentBaseCanada;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar paymentBaseCanada = (loanwithcmhc * baseInterestCanada) \/ (1 - (1 \/ Math.pow((1 + baseInterestCanada), (amortizationYears * 12))));\n\t\t\t\t\t\t\tvar paymentBaseUSA = (loanwithcmhc * baseInterestUSA) \/ (1 - (1 \/ Math.pow((1 + baseInterestUSA), (amortizationYears * 12))));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar paymentCanada = paymentBaseCanada;\n\t\t\t\t\t\tvar paymentUSA = paymentBaseUSA;\n\n\n\t\t\t\t\t\tif ((numberPayments == '52a' || numberPayments == '26a') && interestCanada != 0) {\n\t\t\t\t\t\t\tvar paymentCanada = paymentBaseCanada \/ (parseInt(numberPayments) \/ 13);\n\t\t\t\t\t\t\tvar paymentUSA = paymentBaseUSA \/ (parseInt(numberPayments) \/ 13);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ((numberPayments == '52' || numberPayments == '26' || numberPayments == '2' || numberPayments == '1') && interestCanada != 0) {\n\t\t\t\t\t\t\tvar paymentCanada = (loanwithcmhc * interestCanada) \/ (1 - (1 \/ Math.pow((1 + interestCanada), periodTotal)));\n\t\t\t\t\t\t\tvar paymentUSA = (loanwithcmhc * interest_USA) \/ (1 - (1 \/ Math.pow((1 + interest_USA), periodTotal)));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.paymentPeriod_1.value = prosomo_calculator_1_Decimals(paymentCanada, 2);\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar balanceCanada = loanAmountValue;\n\t\t\t\t\t\tvar balanceUSA = balanceCanada;\n\t\t\t\t\t\tvar interestCanadaa = 0;\n\t\t\t\t\t\tvar interestUSA = 0;\n\t\t\t\t\t\tvar interestTotalCanada = 0;\n\t\t\t\t\t\tvar interestTotalUSA = 0;\n\n\t\t\t\t\t\tfor (var jj = 0; jj < termPeriod; jj++) {\n\t\t\t\t\t\t\tinterestCanadaa = interestCanada * balanceCanada;\n\t\t\t\t\t\t\tinterestTotalCanada = interestTotalCanada + interestCanadaa;\n\t\t\t\t\t\t\tbalanceCanada = balanceCanada - (paymentCanada - interestCanadaa);\n\n\t\t\t\t\t\t\tinterestUSA = interest_USA * balanceUSA\n\t\t\t\t\t\t\tinterestTotalUSA = interestTotalUSA + interestUSA\n\t\t\t\t\t\t\tbalanceUSA = balanceUSA - (paymentUSA - interestUSA);\n\t\t\t\t\t\t\tif (balanceUSA < 0) {\n\t\t\t\t\t\t\t\tbalanceUSA = 0;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (balanceCanada < 0) {\n\t\t\t\t\t\t\t\tbalanceCanada = 0\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (balanceUSA < 0) {\n\t\t\t\t\t\t\tbalanceUSA = 0\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (balanceCanada < 0) {\n\t\t\t\t\t\t\tbalanceCanada = 0\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar kk = jj;\n\t\t\t\t\t\tfor (var jj = termPeriod; jj < periodTotal; jj++) {\n\t\t\t\t\t\t\tinterestCanadaa = interestCanada * balanceCanada;\n\t\t\t\t\t\t\tinterestTotalCanada = interestTotalCanada + interestCanadaa;\n\t\t\t\t\t\t\tbalanceCanada = balanceCanada - (paymentCanada - interestCanadaa);\n\n\t\t\t\t\t\t\tinterestUSA = interest_USA * balanceUSA\n\t\t\t\t\t\t\tinterestTotalUSA = interestTotalUSA + interestUSA\n\t\t\t\t\t\t\tbalanceUSA = balanceUSA - (paymentUSA - interestUSA);\n\t\t\t\t\t\t\tkk = jj;\n\t\t\t\t\t\t\tif (balanceUSA < 0) {\n\t\t\t\t\t\t\t\tbalanceUSA = 0;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (balanceCanada < 0) {\n\t\t\t\t\t\t\t\tbalanceCanada = 0\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvar realTerm = prosomo_calculator_1_Decimals((kk + 1) \/ parseInt(numberPayments), 2);\n\t\t\t\t\t\tif (interestCanada == 0) {\n\t\t\t\t\t\t\trealTerm = amortizationYears;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\trealTerm = realTerm.substring(0, realTerm.length - 1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tTotalInt = prosomo_calculator_1_Decimals(interestTotalCanada, 2);\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.cmhcAmount.value = prosomo_calculator_1_Decimals(cmhc_amount, 0);\n\n\n\t\t\t\t\t}\n\t\t\t\t<\/script>\n\n\t\t\t\t\n\t\t\t\t<form name=\"calcMonthlyAmortization_1\" id=\"prosomo_calculator_1_form\">\n\n\t\t\t\t\t<div class=\"grey_box\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_cmhc_iam');\n\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t<select name=\"cmhc_iam\" id=\"prosomo_calculator_1_cmhc_iam\">\n\t\t\t\t\t\t\t\t<option value=\"\" selected=\"selected\"> <\/option>\n\t\t\t\t\t\t\t\t<option value=\"true\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_first_time');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t\t<option value=\"false\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_home_buyer');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\n\t\t\t\t\t\t\t<\/select>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<hr class=\"short\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_cmhc_property');\n\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t<select name=\"cmhc_property\" id=\"prosomo_calculator_1_cmhc_property\">\n\t\t\t\t\t\t\t\t<option value=\"\" selected=\"selected\"> <\/option>\n\t\t\t\t\t\t\t\t<option value=\"false\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_property_existing');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t\t<option value=\"true\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_property_new');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\n\n\t\t\t\t\t\t\t<\/select>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<hr class=\"short\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_price_of_property');\n\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<input type=\"text\" name=\"propertyCost\" id=\"prosomo_calculator_1_propertyCost\" value=\"\" onfocus=\"this.value=''\">\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<hr class=\"short\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_down_payment');\n\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" name=\"downPayment\" id=\"prosomo_calculator_1_downPayment\" value=\"\" onfocus=\"this.value=''\">\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<div id=\"cmhc_error\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<hr class=\"long\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_mortgage_amount');\n\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" name=\"loanAmount\" id=\"prosomo_calculator_1_loanAmount\" class=\"readonly\" value=\"\" readonly>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<hr class=\"short\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_cmhc_amount');\n\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" name=\"cmhcAmount\" id=\"prosomo_calculator_1_cmhcAmount\" class=\"readonly\" value=\"\" readonly>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<hr class=\"thick\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_interest_rate');\n\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" name=\"interest\" id=\"prosomo_calculator_1_interest\" value=\"\" onfocus=\"this.value=''\">\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<hr class=\"short\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_amortization_years');\n\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t<select name=\"amortization\" id=\"prosomo_calculator_1_amortization\" required>\n\t\t\t\t\t\t\t\t<option value=\"60\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_5_years');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t\t<option value=\"120\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_10_years');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t\t<option value=\"180\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_15_years');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t\t<option value=\"240\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_20_years');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t\t<option value=\"300\" selected=\"selected\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_25_years');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t\t<option value=\"360\" selected=\"selected\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_30_years');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t<\/select>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<hr class=\"short\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_payment_frequency');\n\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t<select name=\"periodepaym\" id=\"prosomo_calculator_1_periodepaym\">\n\t\t\t\t\t\t\t\t<option value=\"1\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_annual');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t\t<option value=\"2\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_semi_annual');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t\t<option value=\"12\" selected=\"selected\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_monthly');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t\t<option value=\"26\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_every_2_weeks');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t\t<option value=\"52\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_everyweek');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t\t<option value=\"26a\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_every_2_weeks_acc');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t\t<option value=\"52a\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_everyweek_acc');\n\t\t\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t<\/option>\n\t\t\t\t\t\t\t<\/select>\n\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<div class=\"last_row\">\n\t\t\t\t\t\t<button id=\"prosomo_calculator_1_button2\">\n\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_calculate');\n\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t<\/button>\n\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_payment_amount');\n\t\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t<input name=\"paymentPeriod_1\" type=\"text\" value=\"\" class=\"readonly\" readonly>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<script>\n\t\t\t\t\t\tdocument.addEventListener(\"DOMContentLoaded\", function() {\n\t\t\t\t\t\t\tconst amortizationSelect = document.getElementById(\"prosomo_calculator_1_amortization\");\n\t\t\t\t\t\t\tconst option30 = amortizationSelect.querySelector('option[value=\"360\"]');\n\t\t\t\t\t\t\tconst cmhcIam = document.getElementById(\"prosomo_calculator_1_cmhc_iam\");\n\t\t\t\t\t\t\tconst cmhcProperty = document.getElementById(\"prosomo_calculator_1_cmhc_property\");\n\n\t\t\t\t\t\t\tfunction toggleAmortizationOption() {\n\t\t\t\t\t\t\t\tconst iam = cmhcIam.value === \"true\";\n\t\t\t\t\t\t\t\tconst property = cmhcProperty.value === \"true\";\n\n\t\t\t\t\t\t\t\tif (iam || property) {\n\t\t\t\t\t\t\t\t\toption30.hidden = false; \/\/ show it\n\t\t\t\t\t\t\t\t\toption30.disabled = false;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\/\/ if 30 years was selected, switch back to 25 years\n\t\t\t\t\t\t\t\t\tif (amortizationSelect.value === \"360\") {\n\t\t\t\t\t\t\t\t\t\tamortizationSelect.value = \"300\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\toption30.hidden = true; \/\/ hide it\n\t\t\t\t\t\t\t\t\toption30.disabled = true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\/\/ Run once on load\n\t\t\t\t\t\t\ttoggleAmortizationOption();\n\n\t\t\t\t\t\t\t\/\/ Re-check whenever related selects change\n\t\t\t\t\t\t\tcmhcIam.addEventListener(\"change\", toggleAmortizationOption);\n\t\t\t\t\t\t\tcmhcProperty.addEventListener(\"change\", toggleAmortizationOption);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tjQuery(document).ready(function() {\n\n\t\t\t\t\t\t\tjQuery(\"#prosomo_calculator_1_button2\").click(function(e) {\n\t\t\t\t\t\t\t\te.preventDefault();\n\n\t\t\t\t\t\t\t\tprosomo_calculator_1_calculate2('');\n\n\t\t\t\t\t\t\t\tvar table = prosomo_calculator_1_showTable();\n\n\t\t\t\t\t\t\t\tjQuery(\"#prosomo_calculator_1_table\").html(table);\n\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tjQuery(\"body\").on(\"change\", \"#prosomo_calculator_1_propertyCost\", function() {\n\n\t\t\t\t\t\t\t\/\/var propertyCost = jQuery(\"#prosomo_calculator_1_propertyCost\").val();\n\n\t\t\t\t\t\t\tvar propertyCost = (prosomo_calculator_1_getFieldValue(\"propertyCost\")); \/\/ go get the loan amount\n\t\t\t\t\t\t\ttemp3 = prosomo_calculator_1_switchCharacter(propertyCost, \"+\", \"\");\n\t\t\t\t\t\t\tpropertyCost = prosomo_calculator_1_stripText(temp3);\n\n\t\t\t\t\t\t\tvar downPayment = (prosomo_calculator_1_getFieldValue(\"downPayment\")); \/\/ go get the loan amount\n\t\t\t\t\t\t\ttemp3 = prosomo_calculator_1_switchCharacter(downPayment, \"+\", \"\");\n\t\t\t\t\t\t\tdownPayment = prosomo_calculator_1_stripText(temp3);\n\n\t\t\t\t\t\t\tvar loanAmount = propertyCost - downPayment;\n\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.propertyCost.value = prosomo_calculator_1_Decimals(propertyCost, 0);\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.downPayment.value = prosomo_calculator_1_Decimals(downPayment, 0);\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.loanAmount.value = prosomo_calculator_1_Decimals(loanAmount, 0);\n\n\t\t\t\t\t\t\t\/\/jQuery(\"#prosomo_calculator_1_loanAmount\").val(loanAmount);\n\n\t\t\t\t\t\t\t\/\/prosomo_calculator_1_propertyCost\n\n\t\t\t\t\t\t\t\/\/prosomo_calculator_1_downPayment\n\n\n\n\t\t\t\t\t\t\t\/\/prosomo_calculator_1_loanAmount\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tjQuery(\"body\").on(\"change\", \"#prosomo_calculator_1_downPayment\", function() {\n\n\t\t\t\t\t\t\t\/\/var propertyCost = jQuery(\"#prosomo_calculator_1_propertyCost\").val();\n\t\t\t\t\t\t\t\/\/var downPayment = jQuery(\"#prosomo_calculator_1_downPayment\").val();\n\n\t\t\t\t\t\t\t\/\/var loanAmount = propertyCost-downPayment;\n\n\t\t\t\t\t\t\tvar propertyCost = (prosomo_calculator_1_getFieldValue(\"propertyCost\")); \/\/ go get the loan amount\n\t\t\t\t\t\t\ttemp3 = prosomo_calculator_1_switchCharacter(propertyCost, \"+\", \"\");\n\t\t\t\t\t\t\tpropertyCost = prosomo_calculator_1_stripText(temp3);\n\n\t\t\t\t\t\t\tvar downPayment = (prosomo_calculator_1_getFieldValue(\"downPayment\")); \/\/ go get the loan amount\n\t\t\t\t\t\t\ttemp3 = prosomo_calculator_1_switchCharacter(downPayment, \"+\", \"\");\n\t\t\t\t\t\t\tdownPayment = prosomo_calculator_1_stripText(temp3);\n\n\t\t\t\t\t\t\tvar loanAmount = propertyCost - downPayment;\n\n\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.propertyCost.value = prosomo_calculator_1_Decimals(propertyCost, 0);\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.downPayment.value = prosomo_calculator_1_Decimals(downPayment, 0);\n\t\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.loanAmount.value = prosomo_calculator_1_Decimals(loanAmount, 0);\n\n\t\t\t\t\t\t\t\/\/jQuery(\"#prosomo_calculator_1_loanAmount\").val(loanAmount);\n\n\t\t\t\t\t\t\t\/\/prosomo_calculator_1_propertyCost\n\n\t\t\t\t\t\t\t\/\/prosomo_calculator_1_downPayment\n\n\n\n\t\t\t\t\t\t\t\/\/prosomo_calculator_1_loanAmount\n\t\t\t\t\t\t});\n\t\t\t\t\t<\/script>\n\n\t\t\t\t\t\n\t\t\t\t<input\n                    class=\"apbct_special_field apbct_email_id__elementor_form\"\n                    name=\"apbct__email_id__elementor_form\"\n                    aria-label=\"apbct__label_id__elementor_form\"\n                    type=\"text\" size=\"30\" maxlength=\"200\" autocomplete=\"off\"\n                    value=\"\"\n                \/><\/form>\n\n\t\t\t\t<script>\n\t\t\t\t\tfunction prosomo_calculator_1_showTable() {\n\n\t\t\t\t\t\t$return = \"\";\n\n\t\t\t\t\t\t\/* start propertyCost *\/\n\n\t\t\t\t\t\tvar propertyCost = (prosomo_calculator_1_getFieldValue(\"propertyCost\")); \/\/ go get the loan amount\n\t\t\t\t\t\ttemp3 = prosomo_calculator_1_switchCharacter(propertyCost, \"+\", \"\");\n\t\t\t\t\t\tpropertyCost = prosomo_calculator_1_stripText(temp3);\n\t\t\t\t\t\tif (propertyCost == \"\") {\n\t\t\t\t\t\t\tpropertyCost = \"100000\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.propertyCost.value = prosomo_calculator_1_Decimals(propertyCost, 0);\n\t\t\t\t\t\tvar temp1 = document.calcMonthlyAmortization_1.propertyCost.value;\n\t\t\t\t\t\tpropertyCost = prosomo_calculator_1_stripText(temp1);\n\n\t\t\t\t\t\t\/* end propertyCost *\/\n\n\t\t\t\t\t\t\/* start downPayment *\/\n\n\t\t\t\t\t\tvar downPayment = (prosomo_calculator_1_getFieldValue(\"downPayment\")); \/\/ go get the loan amount\n\t\t\t\t\t\ttemp3 = prosomo_calculator_1_switchCharacter(downPayment, \"+\", \"\");\n\t\t\t\t\t\tdownPayment = prosomo_calculator_1_stripText(temp3);\n\t\t\t\t\t\tif (downPayment == \"\") {\n\t\t\t\t\t\t\tdownPayment = \"20000\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.downPayment.value = prosomo_calculator_1_Decimals(downPayment, 0);\n\t\t\t\t\t\tvar temp1 = document.calcMonthlyAmortization_1.downPayment.value;\n\t\t\t\t\t\tdownPayment = prosomo_calculator_1_stripText(temp1);\n\n\t\t\t\t\t\t\/* end downPayment *\/\n\n\t\t\t\t\t\tvar loanAmount = (prosomo_calculator_1_getFieldValue(\"loanAmount\")); \/\/ go get the loan amount\n\t\t\t\t\t\ttemp3 = prosomo_calculator_1_switchCharacter(loanAmount, \"+\", \"\");\n\t\t\t\t\t\tloanAmount = prosomo_calculator_1_stripText(temp3);\n\t\t\t\t\t\tif (loanAmount == \"\") {\n\t\t\t\t\t\t\t\/\/loanAmount = \"100000\";\n\t\t\t\t\t\t\tloanAmount = propertyCost - downPayment;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.loanAmount.value = prosomo_calculator_1_Decimals(loanAmount, 0);\n\t\t\t\t\t\tvar temp1 = document.calcMonthlyAmortization_1.loanAmount.value;\n\t\t\t\t\t\tloanAmount = prosomo_calculator_1_stripText(temp1);\n\n\t\t\t\t\t\tvar amortization = (prosomo_calculator_1_getFieldValue(\"amortization\")); \/\/ aller chercher l'amortisation\n\t\t\t\t\t\tif (amortization == \"\") {\n\t\t\t\t\t\t\tamortization = \"300\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.amortization.value = amortization;\n\n\t\t\t\t\t\tvar interest2 = (prosomo_calculator_1_getFieldValue(\"interest\")); \/\/ aller chercher le taux interet\n\t\t\t\t\t\tif (interest2 == \"\") {\n\t\t\t\t\t\t\tinterest2 = \"5 %\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.interest.value = interest2;\n\t\t\t\t\t\ttemp3 = prosomo_calculator_1_switchCharacter(interest2, \",\", \".\");\n\t\t\t\t\t\tinterest = parseFloat(temp3);\n\n\t\t\t\t\t\tvar numberPayments = (prosomo_calculator_1_getFieldValue(\"periodepaym\")); \/\/ aller chercher le type de paiement\n\t\t\t\t\t\tif (numberPayments == \"\") {\n\t\t\t\t\t\t\tnumberPayments = \"12\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == \"1\") {\n\t\t\t\t\t\t\ta = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == \"2\") {\n\t\t\t\t\t\t\ta = 1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == \"12\") {\n\t\t\t\t\t\t\ta = 2;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == \"26\") {\n\t\t\t\t\t\t\ta = 3;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == \"52\") {\n\t\t\t\t\t\t\ta = 4;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == \"26a\") {\n\t\t\t\t\t\t\ta = 5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == \"52a\") {\n\t\t\t\t\t\t\ta = 6;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tdocument.calcMonthlyAmortization_1.periodepaym.options[a].selected = true;\n\n\t\t\t\t\t\t\/\/prosomo_calculator_1_calculate();\n\n\t\t\t\t\t\t\/* *\/\n\n\t\t\t\t\t\tvar P; \/\/loan amount\n\t\t\t\t\t\tvar I; \/\/Interests\n\t\t\t\t\t\tvar L; \/\/Amortization in years\n\t\t\t\t\t\tvar N; \/\/number of total payments (un-acc)\n\t\t\t\t\t\tvar M; \/\/periodic payment\n\t\t\t\t\t\tvar H; \/\/periodic mortgage payment\n\t\t\t\t\t\tvar C; \/\/capital\n\t\t\t\t\t\tvar Q; \/\/balance due\n\t\t\t\t\t\tvar NP; \/\/number of payments\n\t\t\t\t\t\tvar X;\n\t\t\t\t\t\tvar H2 = 0;\n\t\t\t\t\t\tvar C2 = 0;\n\t\t\t\t\t\tvar show;\n\n\t\t\t\t\t\t\/\/ Reset to 0\n\t\t\t\t\t\tX = 0;\n\t\t\t\t\t\tshow = 0;\n\n\t\t\t\t\t\t\/\/ Loan amount\n\t\t\t\t\t\tP = loanAmount;\n\t\t\t\t\t\tP2 = loanAmount;\n\n\t\t\t\t\t\t\/\/ Annual interest rate\n\t\t\t\t\t\tI = interest;\n\t\t\t\t\t\tannualInterest = interest \/ 100;\n\n\t\t\t\t\t\t\/\/ Amortization in years\n\t\t\t\t\t\tL = amortization \/ 12; \/\/\n\n\t\t\t\t\t\t\/\/ Number of total payments\n\t\t\t\t\t\tNP = parseInt(numberPayments); \/\/ number of payments\n\t\t\t\t\t\tN = L * NP; \/\/ periodTotal\n\n\t\t\t\t\t\t\/\/ Interest rate per payment\n\t\t\t\t\t\tI = Math.pow((1 + annualInterest \/ 2), (2 \/ NP)) - 1;\n\t\t\t\t\t\t\/\/ Basic interest rate\n\t\t\t\t\t\tvar baseInterestCanada = Math.pow((1 + annualInterest \/ 2), (2 \/ 12)) - 1;\n\n\t\t\t\t\t\t\/\/ Periodic payments\n\t\t\t\t\t\tvar paymentPeriodBase = (P * baseInterestCanada) \/ (1 - (1 \/ Math.pow((1 + baseInterestCanada), (L * 12))));\n\t\t\t\t\t\tvar M = paymentPeriodBase;\n\t\t\t\t\t\tif (numberPayments == '52a' || numberPayments == '26a') {\n\t\t\t\t\t\t\tM = paymentPeriodBase \/ (NP \/ 13);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ((numberPayments == '52' || numberPayments == '26' || numberPayments == '2' || numberPayments == '1')) {\n\t\t\t\t\t\t\tM = (P * I) \/ (1 - (1 \/ Math.pow((1 + I), N)));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\/\/ Find real amortization\n\t\t\t\t\t\tif (numberPayments == '52a' || numberPayments == '26a') {\n\t\t\t\t\t\t\tkk = 0;\n\t\t\t\t\t\t\tinterestTotalCanada2 = 0;\n\t\t\t\t\t\t\tbalanceCanada2 = P2;\n\t\t\t\t\t\t\tpaymentCanada2 = M;\n\t\t\t\t\t\t\tfor (var jj = 0; jj < N; jj++) {\n\t\t\t\t\t\t\t\tinterestCanadaa2 = I * balanceCanada2;\n\t\t\t\t\t\t\t\tinterestTotalCanada2 = interestTotalCanada2 + interestCanadaa2;\n\t\t\t\t\t\t\t\tbalanceCanada2 = balanceCanada2 - (paymentCanada2 - interestCanadaa2);\n\t\t\t\t\t\t\t\tkk = jj;\n\t\t\t\t\t\t\t\tif (balanceCanada2 < 0) {\n\t\t\t\t\t\t\t\t\tbalanceCanada2 = 0;\n\t\t\t\t\t\t\t\t\trealAmortizationMonths = prosomo_calculator_1_Decimals(((kk + 1) \/ NP) * 12, 0);\n\t\t\t\t\t\t\t\t\trealAmortizationMonths = realAmortizationMonths.substring(0, realAmortizationMonths.length - 2);\n\t\t\t\t\t\t\t\t\trealAmortization = prosomo_calculator_1_Decimals((kk + 1) \/ NP, 2);\n\t\t\t\t\t\t\t\t\trealAmortization = realAmortization.substring(0, realAmortization.length - 2);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tann = \"\" + parseInt(L * 100) \/ 100;\n\t\t\t\t\t\tann = prosomo_calculator_1_switchCharacter(ann, \".\", \",\");\n\n\t\t\t\t\t\tvar output = \"\";\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (numberPayments == '52a' || numberPayments == '26a') {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar TP = kk + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (numberPayments == '52' || numberPayments == '26' || numberPayments == '2' || numberPayments == '1' || numberPayments == '12') {\n\t\t\t\t\t\t\tvar TP = parseInt(N);\n\t\t\t\t\t\t\tif (TP < parseFloat(N)) {\n\t\t\t\t\t\t\t\tTP = TP + 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (TP > 1560) {\n\t\t\t\t\t\t\t\/\/output +=\"!!! Plan d'amortissement trop long &agrave; afficher !!!<br><br>R&eacute;sum&eacute; par ann&eacute;e du plan d'amortissement <br>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (TP <= 1560) {\n\t\t\t\t\t\t\t\/\/output +=\"Plan d'amortissement <br>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\/\/output += numberPaymentsText2;\n\n\t\t\t\t\t\toutput += '<table>';\n\t\t\t\t\t\toutput += \"<thead>\";\n\n\t\t\t\t\t\t\/\/ Headers\n\t\t\t\t\t\theader1 = \"\";\n\n\t\t\t\t\t\tvar showYears = 0;\n\t\t\t\t\t\tif (TP < 1561) {\n\t\t\t\t\t\t\tif (numberPayments == '52' || numberPayments == '52a' || numberPayments == '26' || numberPayments == '26a') { \/\/ find periodic amounts\n\t\t\t\t\t\t\t\toutput += header1 + \"<th>\" + prosomo_calculator_1_returnString('text_periodic_payment') + \"<\/th>\";\n\t\t\t\t\t\t\t\tvar showYears = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} \/\/end TP<1561\n\t\t\t\t\t\tif (TP > 1560) {\n\t\t\t\t\t\t\tif (numberPayments == '52' || numberPayments == '52a' || numberPayments == '26' || numberPayments == '26a') { \/\/ find the annual amounts\n\t\t\t\t\t\t\t\toutput += header1 + \"<th>\" + prosomo_calculator_1_returnString('text_year') + \"<\/th>\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} \/\/end TP>1560\n\t\t\t\t\t\tif (numberPayments == '12') {\n\t\t\t\t\t\t\toutput += header1 + \"<th>\" + prosomo_calculator_1_returnString('text_month') + \"<\/th>\";\n\t\t\t\t\t\t\tvar showYears = 1;\n\t\t\t\t\t\t} \/\/ find the amounts per month\n\t\t\t\t\t\tif (numberPayments == '2') {\n\t\t\t\t\t\t\toutput += header1 + \"<th>\" + prosomo_calculator_1_returnString('text_periodic_payment') + \"<\/th>\";\n\t\t\t\t\t\t} \/\/ find the amounts per half month\n\t\t\t\t\t\tif (numberPayments == '1') {\n\t\t\t\t\t\t\toutput += header1 + \"<th>\" + prosomo_calculator_1_returnString('text_year') + \"<\/th>\";\n\t\t\t\t\t\t} \/\/ find the annual amounts\n\n\t\t\t\t\t\t\n\t\t\t\t\t\toutput += header1 + \"<th>\" + prosomo_calculator_1_returnString('text_interest') + \"<\/th>\";\n\t\t\t\t\t\toutput += header1 + \"<th>\" + prosomo_calculator_1_returnString('text_capital') + \"<\/th>\";\n\t\t\t\t\t\toutput += header1 + \"<th>\" + prosomo_calculator_1_returnString('text_residual_balance') + \"<\/th>\";\n\n\n\n\t\t\t\t\t\toutput += \"<\/tr>\";\n\t\t\t\t\t\toutput += \"<\/thead>\";\n\t\t\t\t\t\toutput += \"<tbody class='prosomo-calculator-rows'>\";\n\n\t\t\t\t\t\toutput += \"<tr>\";\n\t\t\t\t\t\t\/\/ end Headers\n\n\t\t\t\t\t\t\/\/ display the rest of the table\n\t\t\t\t\t\tTb1 = \"<td>\";\n\t\t\t\t\t\tTbf = \"<\/td>\";\n\t\t\t\t\t\tTbf2 = \"<\/tr>\";\n\n\t\t\t\t\t\twhile (X < N) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tP3 = P2 - C2; \/\/ simplified table display\n\t\t\t\t\t\t\tHp = 0;\n\t\t\t\t\t\t\tQ2 = 0;\n\n\t\t\t\t\t\t\tif (showYears == 1) {\n\t\t\t\t\t\t\t\tvar z = (show) \/ NP\n\t\t\t\t\t\t\t\tvar z2 = parseInt(z) - parseFloat(z)\n\t\t\t\t\t\t\t\tif (z > 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tL1 = Tb1 + (show + 1) + Tbf; \/\/ period\n\t\t\t\t\t\t\tL2 = Tb1 + prosomo_calculator_1_Decimals(P3, 2) + Tbf; \/\/ balance payable\n\t\t\t\t\t\t\tL2 = Tb1 + prosomo_calculator_1_Decimals(P3, 2) + Tbf; \/\/ balance payable\n\n\t\t\t\t\t\t\tLL = L1 + L2; \/\/ original display\n\t\t\t\t\t\t\tLL = L1; \/\/ simplified display\n\n\t\t\t\t\t\t\toutput += LL;\n\n\t\t\t\t\t\t\tcycle = 1;\n\t\t\t\t\t\t\tif (numberPayments == '52' || numberPayments == '52a' || numberPayments == '26' || numberPayments == '26a') { \/\/ find the annual amounts\n\t\t\t\t\t\t\t\tcycle = NP;\n\t\t\t\t\t\t\t\tif (TP < 1561) {\n\t\t\t\t\t\t\t\t\tcycle = 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor (i = 1; i <= cycle; i++) \/\/ find the annual amounts\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tH = P * I; \/\/ mortgage paid by payment\n\t\t\t\t\t\t\t\tH2 = H2 + H; \/\/ accumulated interest\n\t\t\t\t\t\t\t\tHp = Hp + H; \/\/ interest paid\n\t\t\t\t\t\t\t\tC = M - H; \/\/ capital\n\t\t\t\t\t\t\t\tC2 = C2 + C; \/\/ accumulated capital\n\t\t\t\t\t\t\t\tQ = P - C; \/\/ balance due\n\t\t\t\t\t\t\t\tQ2 = Q2 + C; \/\/ capital reimbursed\n\t\t\t\t\t\t\t\tP = Q;\n\t\t\t\t\t\t\t\tif (P2 - C2 <= 0) {\n\t\t\t\t\t\t\t\t\tC2 = P2;\n\t\t\t\t\t\t\t\t\tQ2 = P3;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tL3 = Tb1 + prosomo_calculator_1_Decimals(Q2, 2) + Tbf; \/\/ capital reimbursed\n\t\t\t\t\t\t\tL4 = Tb1 + prosomo_calculator_1_Decimals(C2, 2) + Tbf; \/\/ accumulated capital\n\t\t\t\t\t\t\tL5 = Tb1 + prosomo_calculator_1_Decimals(Hp, 2) + Tbf; \/\/ interest paid\n\t\t\t\t\t\t\tL6 = Tb1 + prosomo_calculator_1_Decimals(H2, 2) + Tbf; \/\/ accumulated interest\n\n\n\t\t\t\t\t\t\tL8 = Tb1 + prosomo_calculator_1_Decimals(P2 - C2, 2) + Tbf; \/\/ accumulated capital\n\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tL7 = L5 + L3 + L8; \/\/ simplified table display\n\n\t\t\t\t\t\t\toutput += L7;\n\t\t\t\t\t\t\toutput += Tbf2;\n\t\t\t\t\t\t\tX = X + cycle; \/\/ ajuster compteur paiements\n\t\t\t\t\t\t\tshow = show + 1; \/\/ ajuster compteur\n\t\t\t\t\t\t\tif (P2 - C2 <= 0) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput += \"<\/tbody>\";\n\t\t\t\t\t\toutput += \"<\/table>\";\n\n\t\t\t\t\t\treturn output;\n\n\t\t\t\t\t}\n\t\t\t\t<\/script>\n\n\t\t\t\t<div>\n\t\t\t\t\t<button id=\"prosomo_calculator_1_showTableBtn\">\n\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\tprosomo_calculator_1_showString('text_monthly_payment_chart');\n\t\t\t\t\t\t<\/script>\n\t\t\t\t\t<\/button>\n\n\t\t\t\t\t<script>\n\t\t\t\t\t\tjQuery(\"body\").on(\"click\", \"#prosomo_calculator_1_showTableBtn\", function() {\n\n\t\t\t\t\t\t\tjQuery(\"#prosomo_calculator_1_table\").toggleClass(\"expanded\");\n\n\t\t\t\t\t\t\t\/\/ Optional: change button text\n\t\t\t\t\t\t\tif (jQuery(\"#prosomo_calculator_1_table\").hasClass(\"expanded\")) {\n\t\t\t\t\t\t\t\tjQuery(this).text(prosomo_calculator_1_returnString('show_less_button'));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tjQuery(this).text(prosomo_calculator_1_returnString('show_more_button'));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t<\/script>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div id=\"prosomo_calculator_1_table\">\n\n\t\t\t\t\t<script>\n\t\t\t\t\t\tdocument.write(prosomo_calculator_1_showTable());\n\t\t\t\t\t<\/script>\n\n\t\t\t\t<\/div>\n\n\t\t\t<\/div>\n\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Finance an income property and grow your real estate portfolio Buying a multi-unit property is a proven strategy for generating stable rental income and growing your capital. With a multi-unit mortgage, you have access to specialized financing designed for properties with two or more units. This type of loan allows you to carry out a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-2925","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/alpfinance.ca\/en\/wp-json\/wp\/v2\/pages\/2925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alpfinance.ca\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/alpfinance.ca\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/alpfinance.ca\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alpfinance.ca\/en\/wp-json\/wp\/v2\/comments?post=2925"}],"version-history":[{"count":16,"href":"https:\/\/alpfinance.ca\/en\/wp-json\/wp\/v2\/pages\/2925\/revisions"}],"predecessor-version":[{"id":2957,"href":"https:\/\/alpfinance.ca\/en\/wp-json\/wp\/v2\/pages\/2925\/revisions\/2957"}],"wp:attachment":[{"href":"https:\/\/alpfinance.ca\/en\/wp-json\/wp\/v2\/media?parent=2925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}