Building a Multi-Country Real Estate Underwriting Engine in Pure JS (Canadian Semi-Annual Mortgages, OSFI B-20, US 30yr & French LMNP)
Almost every real estate calculator on the web makes the same shortcut: it takes a US 30-year monthly-compounded mortgage formula ( r / 12 ), slaps on a flat 2% closing cost, and calls it a day.