# Create a ready-to-paste HTML file for Squarespace with the full calculator suite.
# The file includes:
# - Province selector, email & print, theme toggle
# - Tabs: RRSP Growth to 65, CPP 60/65/70, RRIF Minimums (with config/tooltip), RRSP Tax Savings, Income Tax Rate (with ON surtax & QC abatement + breakdown),
# HBP Repayment, TFSA Room, Insurance Needs, Mortgage Payment, Compound Interest, Debt Payoff, Retirement Goal
# - Config loader with placeholder URL 'YOUR_JSON_URL_HERE' (user replaces with Squarespace asset URL)
# - Rules badge that turns amber if browser year > rulesYear
# - Clean, compact CSS to keep the file reasonably sized
html = r"""
"""
with open('/mnt/data/mw-calculators-squarespace.html', 'w', encoding='utf-8') as f:
f.write(html)
html[:500]
Maritime Wealth
Advisor‑Centric Calculators • Canada
RRSP Growth to 65
Projected value @65—
Total contributions—
Total growth—
CPP: Start at 60, 65, or 70?
Start at 60—
Start at 65—
Start at 70—
RRIF Minimums
Minimum %—
Minimum withdrawal—
RRSP Tax Savings
Estimated refund—
Net out-of-pocket—
Income Tax (Estimator)
Effective tax rate—
Combined marginal rate—
Details
Federal tax—
QC abatement—
Provincial basic tax—
ON surtax—
Total tax—
RRSP Home Buyers’ Plan (HBP) Repayment
Minimum annual—
Years—
Schedule—
TFSA Room
Room before contribution—
Room after contribution—
Insurance Needs (Quick)
Recommended coverage—
Mortgage Payment
Monthly P&I—
Compound Interest
Future value—
Total contributions—
Total growth—
Debt Payoff
Months to payoff—
Total interest—
Retirement Goal (Real)
Income gap—
Target portfolio (real)—