Tax · Margin · Platform Fees · PDF Invoice
Freelance Invoice Tax & Margin Calculator Calculate your project total, tax, profit margin and take-home pay in seconds. Pro Mode adds multi-line invoices, platform fee deductions, late payment fees, currency conversion and PDF export.
● Pro Version is Free for now
Simple
Pro — Full Invoice Suite
✓ Multi-line invoice, platform fees, late fees, PDF export unlocked
💼 Quick Invoice Calculator
📋 Multi-Line Invoice
+ Add Line Item ⚙️ Advanced Options
Quick Platform Presets
None
Upwork (20%)
Fiverr (20%)
Toptal (10%)
Stripe (3%)
PayPal (2.9%)
📊 Margin & Rate Analysis
0%
Profit Margin
After all deductions
$0/hr
Effective Hourly Rate
After fees & tax
0×
Cost Multiplier
Revenue ÷ expenses
Export your invoice breakdown `;
const blob = new Blob([html], {type:'text/html'});
const a = document.createElement('a'); a.download='invoice-'+Date.now()+'.html'; a.href=URL.createObjectURL(blob); a.click();
toast('PDF ready — open the file and print/save as PDF');
}// ── MODE ──────────────────────────────────────────────────────
function setMode(mode) {
isPro = mode==='pro';
document.getElementById('btnSimple').classList.toggle('active',!isPro);
document.getElementById('btnPro').classList.toggle('active',isPro);
document.body.classList.toggle('pro-mode',isPro);
document.getElementById('proModeBar').style.display=isPro?'flex':'none';
if (isPro) { renderLineItems(); }
calculate();
try{localStorage.setItem('sst_inv_mode',mode);}catch(e){}
}function toast(msg){const t=document.getElementById('toast');t.textContent=msg;t.classList.add('show');setTimeout(()=>t.classList.remove('show'),2600);}// ── INIT ──────────────────────────────────────────────────────
try{
const m=localStorage.getItem('sst_inv_mode');
if(m==='pro'){setMode('pro');}else{calculate();}
}catch(e){calculate();}