Hamptons 2% Peconic Bay CPF & Philadelphia Transfer Tax Calculator

HTML

<div class="ec-card">
  <div class="ec-kicker">N.Y. TOWN LAW § 64-e (PECONIC BAY 2% CPF) · PHILA. CODE § 19-1400 (4.278% RTT)</div>
  <h2>2026 Hamptons 2% CPF & Philadelphia 4.278% Conveyance Engine</h2>
  <label>Contract Purchase Price ($): <input id="price" type="number" value="2000000" step="50000"></label>
  <button id="runBtn">Audit East End CPF & Philly Split</button>
  <div id="out"></div>
  <p class="ec-foot">Canonical Closing Desk: <a href="https://eastcorpcapital.com/hamptons-east-end-peconic-bay-community-preservation-fund-cpf-2-percent-transfer-tax-guide-2026/" target="_blank" rel="noopener">Hamptons 2% Peconic Bay CPF & Philadelphia Transfer Tax Calculator</a> · <a href="https://eastcorpcapital.com/philadelphia-and-pennsylvania-realty-transfer-tax-calculator-2026/" target="_blank" rel="noopener">PA & Philly Transfer Tax Calculator</a></p>
</div>

CSS

body{font-family:system-ui,-apple-system,sans-serif;background:#F4F4F0;padding:18px;color:#0F172A}.ec-card{max-width:650px;background:#fff;border:1px solid #CBD5E1;border-top:5px solid #1E3A8A;padding:20px}.ec-kicker{font-family:monospace;font-size:11px;font-weight:700;color:#1E3A8A}h2{margin:6px 0 12px;font-size:20px}label{display:block;font-weight:700;font-size:13px;margin-bottom:8px}input{padding:5px 9px;font-size:14px;width:160px;margin-left:8px}button{background:#1E3A8A;color:#fff;border:none;padding:8px 14px;font-weight:700;cursor:pointer;margin:6px 0 14px}.res{background:#EFF6FF;border-left:4px solid #1E3A8A;padding:12px;font-size:13.5px;line-height:1.6}.ec-foot{margin-top:12px;font-size:12px}a{color:#1E3A8A;font-weight:700}

JavaScript

function calc(){
  const p = parseFloat(document.getElementById('price').value)||2000000;
  const shEx = p >= 2000000 ? 0 : 400000;
  const cpfSH = Math.max(0, p - shEx) * 0.02;
  const cpfNF = Math.max(0, p - 200000) * 0.02;
  const phillyTotal = p * 0.04278;
  document.getElementById('out').innerHTML = '<div class="res"><strong>East Hampton / Southampton 2% CPF Tax:</strong> $' + Math.round(cpfSH).toLocaleString() + ' (' + (p>=2000000 ? '$400k Exemption Lost at >=$2.0M Cliff!' : '$400k Exemption Applied') + ')<br><strong>Southold / Riverhead North Fork 2% CPF Tax:</strong> $' + Math.round(cpfNF).toLocaleString() + '<br><strong>Philadelphia 4.278% Realty Transfer Tax:</strong> $' + Math.round(phillyTotal).toLocaleString() + ' ($' + Math.round(phillyTotal/2).toLocaleString() + ' Buyer / $' + Math.round(phillyTotal/2).toLocaleString() + ' Seller)</div>';
}
document.getElementById('runBtn').addEventListener('click', calc);
calc();