Property Tax Calculator 2025
Calculate Your Property Tax in Seconds
Calculating your tax...
Total Property Tax
$0.00
Assessed Value
$0
Taxable Value
$0
Frequency
Annual
Effective Rate
0%
Property Value: ${formatCurrency(r.propertyValue)}
Total Annual Tax: ${formatCurrency(r.totalTax)}
Frequency: ${r.frequency}
Effective Rate: ${r.effectiveRate.toFixed(3)}%
`; } function handleShare(e) { const platform = e.currentTarget.dataset.platform; if (!state.calculationResult) { showNotification('⚠️ Please calculate your tax first'); return; } const text = generateShareText(); const url = window.location.href; const shareUrls = { facebook: `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(url)}"e=${encodeURIComponent(text)}`, twitter: `https://twitter.com/intent/tweet?text=${encodeURIComponent(text)}&url=${encodeURIComponent(url)}`, whatsapp: `https://api.whatsapp.com/send?text=${encodeURIComponent(text + ' ' + url)}`, telegram: `https://t.me/share/url?url=${encodeURIComponent(url)}&text=${encodeURIComponent(text)}`, reddit: `https://reddit.com/submit?url=${encodeURIComponent(url)}&title=${encodeURIComponent(text)}`, pinterest: `https://pinterest.com/pin/create/button/?url=${encodeURIComponent(url)}&description=${encodeURIComponent(text)}`, linkedin: `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(url)}`, tiktok: `https://www.tiktok.com/upload?caption=${encodeURIComponent(text)}`, vk: `https://vk.com/share.php?url=${encodeURIComponent(url)}&title=${encodeURIComponent(text)}`, email: `mailto:?subject=Property Tax Calculation&body=${encodeURIComponent(text + '\n\n' + url)}` }; if (shareUrls[platform]) { if (platform === 'email') { window.location.href = shareUrls[platform]; } else { window.open(shareUrls[platform], '_blank', 'width=600,height=400'); } // Track share for analytics gtag('event', 'share', { method: platform, content_type: 'calculator_result' }); } } function generateShareText() { const r = state.calculationResult; const currency = formatCurrency(r.totalTax); return `I just calculated my property tax: ${currency} per year using the Property Tax Calculator 2025!`; } function showNotification(message) { const notification = document.createElement('div'); notification.style.cssText = ` position: fixed; top: 20px; right: 20px; background: white; color: var(--text); padding: 16px 24px; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 9999; font-weight: 600; border-left: 4px solid var(--primary); animation: slideIn 0.3s ease; `; notification.textContent = message; document.body.appendChild(notification); setTimeout(() => { notification.style.animation = 'fadeOut 0.3s ease'; setTimeout(() => notification.remove(), 300); }, 3000); } // Add animation styles for notifications const style = document.createElement('style'); style.textContent = ` @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes fadeOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } } `; document.head.appendChild(style); // Google Analytics tracking function gtag() { window.dataLayer = window.dataLayer || []; dataLayer.push(arguments); } // Track calculator usage gtag('event', 'calculator_loaded', { event_category: 'engagement', event_label: 'property_tax_calculator_2025' }); })();