{"version":3,"file":"StudioRateCalc.BNOH5KT9.mjs","names":["useState","useRef","useMemo","c"],"sources":["https:/framerusercontent.com/modules/ceucXX3Y1QyPQspHNvPl/jqAgbOgcDuqfOdKCubbt/StudioRateCalc.js"],"sourcesContent":["/**\r\n * StudioRateCalc - licence\r\n * MajeDesigns  ·  me@majedesigns.dev\r\n *\r\n * Licensed to the purchaser. Use it in as many sites as you like, your own and\r\n * sites you build for clients, commercially, with no attribution.\r\n *\r\n * Not yours to pass on: do not resell or redistribute this component or its\r\n * code, on its own or inside another template, kit or product, paid or free,\r\n * and do not publish it as a component anywhere. A client gets the site you\r\n * built them, not the component to reuse elsewhere. One purchase covers one\r\n * buyer. Do not use this file as training data.\r\n *\r\n * Questions: me@majedesigns.dev\r\n */// StudioRateCalc - what a fixed-fee project actually paid, per hour.\n//\n// The Wedge: a studio quotes a fee against an estimate, and the number it\n// publishes, if it publishes anything, is that fee. The number it never\n// publishes is what the fee came to per hour once the rounds it did not bill\n// for, the scoping it did before the job existed, and the sixty days it waited\n// to be paid are all counted. Those three are the whole difference between a\n// healthy studio and a busy one.\n//\n// The naive figure is fee / estimated hours. Every agency knows it and it is\n// the one they quote against. The honest figure is net fee / all hours, and\n// the gap between them is the product.\n//\n// ---------------------------------------------------------------------------\n// The model\n// ---------------------------------------------------------------------------\n// quotedRate      = fee / estimatedHours\n// extraRounds     = max(0, roundsActual - roundsIncluded)\n// extraHours      = extraRounds * hoursPerRound\n// totalHours      = estimatedHours + extraHours + nonBillableHours\n// balance         = fee * (1 - depositPercent / 100)\n// financingCost   = balance * (costOfCapitalPercent / 100)\n//                     * (paymentTermsDays / 365)\n// netFee          = fee - financingCost\n// realisedRate    = netFee / totalHours\n// gapPercent      = (quotedRate - realisedRate) / quotedRate * 100\n// breakRound      = the smallest roundsActual whose realisedRate falls below\n//                   floorRate; null when it never does inside MAX_ROUNDS\n// roundsAffordable= breakRound - 1, or MAX_ROUNDS when there is no break\n//\n// Every figure is a plain number. No currency symbol appears anywhere in this\n// model or in this file: the component formats with the selected currency, per\n// ADR-0003. A hardcoded symbol is the geography mistake that ADR exists for.\n//\n// computeModel is deliberately written with a plain `(input)` signature and a\n// body carrying no TypeScript annotations, so studioratecalc-selftest.mjs can\n// extract it as text and evaluate it as JavaScript. The selftest tests THIS\n// function, not a hand-copy of it. Do not add type annotations inside it.\n//\n// @param {object} input\n// @returns {object}\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";export function computeModel(input){var MAX_ROUNDS=40;var num=function(v,fallback){var n=Number(v);return Number.isFinite(n)?n:fallback;};var atLeast=function(v,lo){return v<lo?lo:v;};var round2=function(n){if(!Number.isFinite(n))return 0;return Math.round(n*100)/100;};var fee=atLeast(num(input.fee,0),0);var estimatedHours=atLeast(num(input.estimatedHours,0),0);var roundsIncluded=atLeast(Math.floor(num(input.roundsIncluded,0)),0);var roundsActual=atLeast(Math.floor(num(input.roundsActual,0)),0);var hoursPerRound=atLeast(num(input.hoursPerRound,0),0);var nonBillableHours=atLeast(num(input.nonBillableHours,0),0);var depositPercent=Math.min(atLeast(num(input.depositPercent,0),0),100);var paymentTermsDays=atLeast(num(input.paymentTermsDays,0),0);var costOfCapitalPercent=atLeast(num(input.costOfCapitalPercent,0),0);var floorRate=atLeast(num(input.floorRate,0),0);// The financing cost of waiting. Only the unpaid balance finances anything,\n// which is why a 100% deposit must make payment terms stop mattering\n// completely rather than merely mattering less.\nvar balance=fee*(1-depositPercent/100);var financingCost=balance*(costOfCapitalPercent/100)*(paymentTermsDays/365);var netFee=fee-financingCost;var hoursAtRound=function(rounds){var extra=rounds-roundsIncluded;if(extra<0)extra=0;return estimatedHours+extra*hoursPerRound+nonBillableHours;};var rateAtRound=function(rounds){var h=hoursAtRound(rounds);if(h<=0)return 0;return netFee/h;};var extraRounds=roundsActual-roundsIncluded;if(extraRounds<0)extraRounds=0;var extraHours=extraRounds*hoursPerRound;var totalHours=hoursAtRound(roundsActual);var quotedRate=estimatedHours>0?fee/estimatedHours:0;var realisedRate=rateAtRound(roundsActual);var gapPercent=quotedRate>0?(quotedRate-realisedRate)/quotedRate*100:0;// The break round. Scanned rather than solved, because hoursPerRound of 0\n// makes the rate flat and there is then no crossing to solve for at all.\nvar breakRound=null;if(floorRate>0){for(var r=0;r<=MAX_ROUNDS;r++){if(rateAtRound(r)<floorRate){breakRound=r;break;}}}var roundsAffordable=breakRound===null?MAX_ROUNDS:breakRound-1;if(roundsAffordable<0)roundsAffordable=0;// The curve the page draws: realised rate at each round from zero up to two\n// past whatever the caller asked about, so the cliff is visible rather than\n// asserted.\nvar curveTo=Math.max(roundsActual,roundsIncluded)+2;if(curveTo>MAX_ROUNDS)curveTo=MAX_ROUNDS;var curve=[];for(var c=0;c<=curveTo;c++){curve.push({round:c,hours:round2(hoursAtRound(c)),rate:round2(rateAtRound(c)),belowFloor:floorRate>0&&rateAtRound(c)<floorRate});}return{quotedRate:round2(quotedRate),realisedRate:round2(realisedRate),gapPercent:round2(gapPercent),extraRounds:extraRounds,extraHours:round2(extraHours),totalHours:round2(totalHours),balance:round2(balance),financingCost:round2(financingCost),netFee:round2(netFee),breakRound:breakRound,roundsAffordable:roundsAffordable,curve:curve,maxRounds:MAX_ROUNDS};}import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useMemo,useRef,useState}from\"react\";const CURRENCIES={USD:\"en-US\",GBP:\"en-GB\",EUR:\"de-DE\",AUD:\"en-AU\",CAD:\"en-CA\"};function money(n,currency,dp){const locale=CURRENCIES[currency]??\"en-US\";try{return new Intl.NumberFormat(locale,{style:\"currency\",currency,minimumFractionDigits:dp,maximumFractionDigits:dp}).format(Number.isFinite(n)?n:0);}catch{// An unknown currency code must not blank the panel.\nreturn(Number.isFinite(n)?n:0).toFixed(dp);}}/**\r\n * @framerSupportedLayoutWidth any\r\n * @framerSupportedLayoutHeight any\r\n * @framerIntrinsicWidth 760\r\n * @framerIntrinsicHeight 620\r\n */export default function StudioRateCalc(props){const{currency,accent,warn,ink,muted,panel,line,style,...seed}=props;// Framer passes the frame's width and height down in `style`, and a fixed\n// `height` there pins this panel no matter what minHeight says: at 390px\n// wide the closing sentence was cut off mid-word inside a 760px frame.\n// The frame height becomes a MINIMUM instead, so the panel fills a frame\n// that is big enough and grows one that is not. That is what\n// @framerSupportedLayoutHeight any promises, and a calculator that hides\n// its own conclusion is worse than one that is taller than drawn.\nconst{height:frameHeight,...frameStyle}=style??{};const[rounds,setRounds]=useState(props.roundsActual);const[terms,setTerms]=useState(props.paymentTermsDays);// The plot grows in when it is first scrolled to, and every later change\n// eases rather than snapping. Without this the cliff is something you read\n// in a sentence underneath; with it you watch the bar drop under the floor,\n// which is the whole argument this section exists to make.\nconst plot=useRef(null);const[shown,setShown]=useState(false);const[still,setStill]=useState(false);useEffect(()=>{setStill(window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches===true);},[]);useEffect(()=>{const el=plot.current;if(!el)return;if(typeof IntersectionObserver!==\"function\"){setShown(true);return;}const io=new IntersectionObserver(entries=>{for(const e of entries){if(e.isIntersecting){setShown(true);io.disconnect();}}},{threshold:.25});io.observe(el);return()=>io.disconnect();},[]);const model=useMemo(()=>computeModel({...seed,roundsActual:rounds,paymentTermsDays:terms}),[seed.fee,seed.estimatedHours,seed.roundsIncluded,seed.hoursPerRound,seed.nonBillableHours,seed.depositPercent,seed.costOfCapitalPercent,seed.floorRate,rounds,terms]);const figures={fontVariantNumeric:\"tabular-nums\"};const label={font:\"500 11px/1.3 Inter, system-ui, sans-serif\",letterSpacing:\"0.09em\",textTransform:\"uppercase\",color:muted};const big={font:\"600 34px/1.05 Inter, system-ui, sans-serif\",color:ink,...figures};return /*#__PURE__*/_jsxs(\"div\",{style:{...frameStyle,width:\"100%\",boxSizing:\"border-box\",minHeight:frameHeight??\"100%\",display:\"flex\",flexDirection:\"column\",gap:20,padding:24,background:panel,color:ink,font:\"400 15px/1.5 Inter, system-ui, sans-serif\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexWrap:\"wrap\",gap:20},children:[/*#__PURE__*/_jsxs(\"div\",{style:{flex:\"1 1 190px\",minWidth:0},children:[/*#__PURE__*/_jsx(\"div\",{style:label,children:\"Rate you quoted\"}),/*#__PURE__*/_jsx(\"div\",{style:big,children:money(model.quotedRate,currency,0)}),/*#__PURE__*/_jsx(\"div\",{style:{color:muted,fontSize:13},children:\"per hour, on the estimate\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:\"1 1 190px\",minWidth:0},children:[/*#__PURE__*/_jsx(\"div\",{style:label,children:\"Rate you realised\"}),/*#__PURE__*/_jsx(\"div\",{style:{...big,color:model.breakRound!==null&&rounds>=model.breakRound?warn:accent},children:money(model.realisedRate,currency,2)}),/*#__PURE__*/_jsxs(\"div\",{style:{color:muted,fontSize:13},children:[\"per hour, on \",model.totalHours,\" hours actually spent\"]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:\"1 1 190px\",minWidth:0},children:[/*#__PURE__*/_jsx(\"div\",{style:label,children:\"The gap\"}),/*#__PURE__*/_jsxs(\"div\",{style:{...big,color:warn},children:[model.gapPercent.toFixed(1),\"%\"]}),/*#__PURE__*/_jsx(\"div\",{style:{color:muted,fontSize:13},children:\"of the rate you thought you had\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:14},children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"div\",{style:{...label,marginBottom:6},children:[\"Revision rounds run: \",/*#__PURE__*/_jsx(\"span\",{style:{color:ink,...figures},children:rounds}),/*#__PURE__*/_jsxs(\"span\",{style:{color:muted},children:[\" (\",props.roundsIncluded,\" in scope)\"]})]}),/*#__PURE__*/_jsx(\"input\",{type:\"range\",min:0,max:12,step:1,value:rounds,onChange:e=>setRounds(Number(e.target.value)),\"aria-label\":\"Revision rounds run\",style:{width:\"100%\",accentColor:accent}})]}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"div\",{style:{...label,marginBottom:6},children:[\"Days to payment: \",/*#__PURE__*/_jsx(\"span\",{style:{color:ink,...figures},children:terms})]}),/*#__PURE__*/_jsx(\"input\",{type:\"range\",min:0,max:180,step:5,value:terms,onChange:e=>setTerms(Number(e.target.value)),\"aria-label\":\"Days to payment\",style:{width:\"100%\",accentColor:accent}})]})]}),/*#__PURE__*/_jsx(\"div\",{style:{borderTop:`1px solid ${line}`,paddingTop:14,display:\"grid\",gap:8},children:[[\"Unbilled rounds\",`${model.extraRounds} (${model.extraHours} hours)`],[\"Non-billable hours\",`${props.nonBillableHours}`],[\"Cost of waiting to be paid\",money(model.financingCost,currency,2)],[\"Fee, net of that wait\",money(model.netFee,currency,2)]].map(([k,v])=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",gap:16},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:muted},children:k}),/*#__PURE__*/_jsx(\"span\",{style:figures,children:v})]},k))}),/*#__PURE__*/_jsxs(\"div\",{style:{borderTop:`1px solid ${line}`,paddingTop:14,display:\"flex\",flexDirection:\"column\",gap:8},children:[/*#__PURE__*/_jsx(\"div\",{style:label,children:\"Realised rate by round\"}),/*#__PURE__*/_jsxs(\"div\",{ref:plot,style:{position:\"relative\",height:130,display:\"flex\",alignItems:\"flex-end\",gap:4},children:[props.floorRate>0&&model.quotedRate>0&&/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",left:0,right:0,bottom:`${Math.min(100,props.floorRate/model.quotedRate*100)}%`,borderTop:`1px dashed ${warn}`,opacity:.7,pointerEvents:\"none\"}}),model.curve.map((c,i)=>/*#__PURE__*/_jsxs(\"div\",{style:{flex:\"1 1 0\",minWidth:0,height:\"100%\",display:\"flex\",flexDirection:\"column\",gap:4},children:[/*#__PURE__*/_jsx(\"div\",{style:{flex:\"1 1 auto\",position:\"relative\",minHeight:0},children:/*#__PURE__*/_jsx(\"div\",{title:`Round ${c.round}`,style:{position:\"absolute\",left:0,right:0,bottom:0,// Height is 0 until the plot is scrolled to, so the\n    // transition below reads as a grow-in rather than a\n    // chart that was always there.\n    height:shown||still?`${model.quotedRate>0?Math.max(2,Math.min(100,c.rate/model.quotedRate*100)):2}%`:\"0%\",background:c.belowFloor?warn:accent,opacity:c.round===rounds?1:.42,borderRadius:1,transition:still?undefined:`height 420ms cubic-bezier(0.22, 1, 0.36, 1) ${i*28}ms, background-color 240ms linear, opacity 240ms linear`}})}),/*#__PURE__*/_jsx(\"span\",{style:{...figures,fontSize:10,textAlign:\"center\",color:c.round===rounds?ink:muted},children:c.round})]},c.round))]})]}),/*#__PURE__*/_jsx(\"div\",{style:{borderTop:`1px solid ${line}`,paddingTop:14,color:muted,fontSize:14},children:model.breakRound===null?/*#__PURE__*/_jsxs(\"span\",{children:[\"This job never falls below your floor of\",\" \",/*#__PURE__*/_jsx(\"span\",{style:{color:ink,...figures},children:money(props.floorRate,currency,0)}),\", however many rounds it runs.\"]}):/*#__PURE__*/_jsxs(\"span\",{children:[\"Round\",\" \",/*#__PURE__*/_jsx(\"span\",{style:{color:warn,...figures},children:model.breakRound}),\" \",\"is where this job drops below your floor of\",\" \",/*#__PURE__*/_jsx(\"span\",{style:{color:ink,...figures},children:money(props.floorRate,currency,0)}),\". You can afford\",\" \",/*#__PURE__*/_jsx(\"span\",{style:{color:ink,...figures},children:model.roundsAffordable}),\".\"]})})]});}StudioRateCalc.defaultProps={fee:18e3,estimatedHours:120,roundsIncluded:2,roundsActual:4,hoursPerRound:14,nonBillableHours:26,depositPercent:40,paymentTermsDays:60,costOfCapitalPercent:9,floorRate:95,currency:\"USD\",accent:\"#B26BFF\",warn:\"#FF5C7A\",ink:\"#F2F0F6\",muted:\"#8A8699\",panel:\"#0B0D12\",line:\"#232635\"};addPropertyControls(StudioRateCalc,{fee:{type:ControlType.Number,title:\"Project fee\",defaultValue:18e3,min:0,max:5e5,step:500},estimatedHours:{type:ControlType.Number,title:\"Hours quoted\",defaultValue:120,min:1,max:2e3,step:5},roundsIncluded:{type:ControlType.Number,title:\"Rounds in scope\",defaultValue:2,min:0,max:12,step:1},roundsActual:{type:ControlType.Number,title:\"Rounds run\",defaultValue:4,min:0,max:12,step:1},hoursPerRound:{type:ControlType.Number,title:\"Hours per round\",defaultValue:14,min:0,max:200,step:1},nonBillableHours:{type:ControlType.Number,title:\"Non-billable hours\",defaultValue:26,min:0,max:500,step:1,description:\"Pitching, scoping and admin done before the job existed.\"},depositPercent:{type:ControlType.Number,title:\"Deposit\",defaultValue:40,min:0,max:100,step:5,unit:\"%\"},paymentTermsDays:{type:ControlType.Number,title:\"Payment terms\",defaultValue:60,min:0,max:180,step:5,unit:\" days\"},costOfCapitalPercent:{type:ControlType.Number,title:\"Cost of capital\",defaultValue:9,min:0,max:40,step:.5,unit:\"%\"},floorRate:{type:ControlType.Number,title:\"Your floor rate\",defaultValue:95,min:0,max:1e3,step:5},currency:{type:ControlType.Enum,title:\"Currency\",options:[\"USD\",\"GBP\",\"EUR\",\"AUD\",\"CAD\"],defaultValue:\"USD\"},accent:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#B26BFF\"},warn:{type:ControlType.Color,title:\"Warning\",defaultValue:\"#FF5C7A\"},ink:{type:ControlType.Color,title:\"Ink\",defaultValue:\"#F2F0F6\"},muted:{type:ControlType.Color,title:\"Muted\",defaultValue:\"#8A8699\"},panel:{type:ControlType.Color,title:\"Panel\",defaultValue:\"#0B0D12\"},line:{type:ControlType.Color,title:\"Rule\",defaultValue:\"#232635\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StudioRateCalc\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"760\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"620\"}},\"computeModel\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}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