State the fee base first
HTML for this example
Select the code and use your copy shortcut. Changes in this preview are temporary.
<!doctype html>
<html lang="en-US"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>State the fee base first</title><style>
:root{color-scheme:light;--accent:#8d4f42;--wash:#f8ece7;--ink:#202d3b;--paper:#fffdf9}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#eeeae2;font:17px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif}main{max-width:980px;margin:auto;padding:28px 24px 40px}header{border-top:6px solid var(--accent);padding:20px 0 24px}.kicker{color:var(--accent);font-weight:750;letter-spacing:.06em;margin:0 0 8px}h1{font:700 clamp(30px,5vw,46px)/1.15 Georgia,serif;margin:0 0 14px;max-width:780px}h2{font-size:23px;line-height:1.3;margin:0 0 14px}h3{font-size:19px;margin:12px 0 8px}p{margin:0 0 16px}button,input,textarea,select{font:inherit}button{background:white;border:1px solid #87949b;color:var(--ink);border-radius:8px;padding:11px 16px;min-height:48px;cursor:pointer;font-weight:650}button:hover{background:var(--wash)}button[aria-pressed=true],button.primary{background:var(--accent);color:white;border-color:var(--accent)}:focus-visible{outline:3px solid #b45a1e;outline-offset:3px}label{display:block;font-weight:650;margin:14px 0 6px}input:not([type=checkbox]):not([type=radio]),textarea,select{display:block;width:100%;min-width:0;max-width:100%;border:1px solid #80909b;border-radius:7px;padding:11px;background:white;color:var(--ink)}input[type=checkbox],input[type=radio]{width:21px;height:21px;accent-color:var(--accent)}textarea{resize:vertical}.panel{background:var(--paper);border:1px solid #ccd2d1;border-radius:12px;padding:24px;margin-bottom:20px}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.two>.panel{margin:0}.two{margin-bottom:20px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.result{padding:18px;background:var(--wash);border-left:5px solid var(--accent);margin-top:18px;white-space:pre-line;overflow-wrap:anywhere}.note{color:#465565;font-size:16px}.strip{padding:18px;background:var(--wash);border-radius:8px;margin-bottom:18px}table{border-collapse:collapse;width:100%;font-size:16px;table-layout:fixed}th,td{text-align:left;padding:10px 8px;border-bottom:1px solid #cbd0d1;overflow-wrap:anywhere;vertical-align:top}th{background:var(--wash)}ol,ul{padding-left:24px}li+li{margin-top:8px}pre{font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere}code{font-size:16px}.grid{display:grid;gap:5px;max-width:440px}.grid button{padding:5px;min-width:0}.grid input{padding:5px!important;text-align:center;font-weight:750}blockquote{font:500 26px/1.5 Georgia,serif;margin:16px 0}footer{font-size:16px;color:#465565;margin-top:22px}[hidden]{display:none!important}svg{display:block;max-width:100%;height:auto}mark{background:#e0efad;color:var(--ink)}@media(max-width:560px){main{padding:18px 12px 28px}.panel{padding:20px 16px}.two{grid-template-columns:minmax(0,1fr)}h1{font-size:32px}.actions button{flex:1 1 135px}th,td{padding:8px 5px}.grid button{min-height:40px}blockquote{font-size:24px}}
</style></head><body><main><header><p class="kicker">EVENT QUOTE · FICTIONAL EP01 COMPARISON</p><h1>State the fee base first</h1><p>Compare one fee basis at a time. All prices and the 15% rate are fictional supplied inputs; required floral quote remains outstanding.</p></header><div class="actions"><button type="button" id="external">External agreed budget basis</button><button type="button" id="linebase">Billed vendor/support basis</button><button type="button" id="v1">AV v1 · $600</button><button type="button" id="v2">AV v2 · $700</button></div><section class="panel"><h2>Priced lines and basis</h2><label for="budget">External agreed budget (fee basis only)</label><input id="budget" type="text" value="5000"><label for="hours">SP01 support hours</label><input id="hours" type="text" value="4"><label for="rate">SP01 hourly rate</label><input id="rate" type="text" value="50"><div id="supplier" class="result" role="status" aria-live="polite">AV01 v1 · one package $600</div><div class="actions"><button type="button" id="calculate">Recalculate comparison</button><button type="button" id="reset">Reset EP01</button></div><div id="quote" class="result" role="status" aria-live="polite"></div></section><section class="panel"><h2>Excluded and unresolved</h2><p id="rounding">Support charges and the planning fee round half up to the nearest cent before totaling.</p><p>VD01 venue: $800 client-direct; excluded from planner-billed totals and fee base. Not paid or booked.</p><p>FL01 required floral scope: quote, quantity, rate and billing responsibility TO CONFIRM. Taxes, payment terms, actual acceptance and booking unknown.</p><p>History: AV01 v1 $600 retained. Current scenario does not approve a revised supplier quote.</p></section><footer>EP01 remains a partial comparison while the required floral price and billing responsibility are unresolved.</footer><noscript>JavaScript is required for the local controls. The accompanying article contains worked examples.</noscript></main><script>
(()=>{'use strict';const $=id=>document.getElementById(id);
let mode='external',version=1,av=600;const cents=s=>{const [whole,fraction='']=s.split('.');return BigInt(whole)*100n+BigInt(fraction.padEnd(2,'0'));};const money=n=>'$'+(n/100n).toLocaleString('en-US')+'.'+(n%100n).toString().padStart(2,'0');function calc(){const h=$('hours').value.trim(),r=$('rate').value.trim(),b=$('budget').value.trim();if([h,r].some(v=>!/^\d+(?:\.\d{1,2})?$/.test(v)||!Number.isFinite(Number(v)))||(mode==='external'&&(!/^\d+(?:\.\d{1,2})?$/.test(b)||!Number.isFinite(Number(b))))){$('quote').textContent='Unresolved: enter nonnegative hours/rate and a supplied external budget for that mode. No subtotal substitution.';return;}const support=(cents(h)*cents(r)+50n)/100n,sub=BigInt(av)*100n+support,basis=mode==='external'?cents(b):sub,fee=(basis*15n+50n)/100n,total=sub+fee;$('quote').textContent='AV01 v'+version+' / Mode: '+mode+' / AV: '+money(BigInt(av)*100n)+' / Support: '+money(support)+' / Known vendor/support subtotal: '+money(sub)+' / Fee basis: '+money(basis)+' / Planning fee15%: '+money(fee)+' / Known-line amount: '+money(total)+' — REQUIRED FL01 QUOTE OUTSTANDING. Approval pending.';}['external','linebase'].forEach(id=>$(id).addEventListener('click',()=>{mode=id;calc();}));[1,2].forEach(n=>$('v'+n).addEventListener('click',()=>{version=n;av=n===1?600:700;$('supplier').textContent='AV01 v'+n+' · one package $'+av;calc();}));['budget','hours','rate'].forEach(id=>$(id).addEventListener('input',()=>{$('quote').textContent='Inputs changed. Recalculate before using the amount.';}));$('calculate').addEventListener('click',calc);$('reset').addEventListener('click',()=>{mode='external';version=1;av=600;$('budget').value='5000';$('hours').value='4';$('rate').value='50';$('supplier').textContent='AV01 v1 · one package $600';calc();});calc();
})();
</script></body></html>