{
  "id": 19906318,
  "title": "Modeling BC property transfer tax and Canadian mortgage payments in Python",
  "url": "https://urgent.news/2026/11/14/modeling-bc-property-transfer-tax-and-canadian-mortgage-payments-in",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-14T02:36:55.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/joppa_sruckrucky_b20878/modeling-bc-property-transfer-tax-and-canadian-mortgage-payments-in-python-4ll9"
  },
  "original_language": "en",
  "account": "The article discusses creating accurate Python code to model British Columbia property transfer tax (PTT) and Canadian mortgage payments. Property transfer tax rates depend on the home's fair market value, with specific brackets. First-time home buyers registered after April 1, 2024, receive exemptions and tax reductions. The code accounts for these rules and calculates the tax amount.\n\nFor mortgage payments, the article explains that Canadian fixed-rate mortgages compound semi-annually, not monthly. This differs from common online calculators that use monthly compounding. The article provides a formula to convert an annual interest rate to a Canadian monthly rate for fixed mortgages. Using the incorrect monthly rate can lead to overestimating mortgage payments, potentially costing borrowers thousands of dollars over the life of the loan. The code demonstrates how to calculate mortgage payments using the correct semi-annual compounding rate.",
  "summary": "Most mortgage calculators you find online are quietly wrong for Canada, and most property tax snippets ignore the edge cases that matter. I needed both for a side project about British Columbia housing costs, so I wrote them from scratch in plain Python. Here's the code, the two gotchas that trip people up, and the output. The rules we're modelling BC property transfer tax (PTT) is charged on a…",
  "key_points": [],
  "editors_take": "Applying precise compounding formulas and tax bracket logic in code prevents the significant financial overestimations that occur when using standard online calculators for Canadian mortgages and British Columbia property transfers.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}