'; } function slider(key,label){ return '
'+ ''+inputs[key]+'%
'+ '
'; } function render(){ var c = calc(); var pct = ((step+1)/STEPS.length)*100; var body = ""; if(step===0){ body = '

Safety & Downtime

Tell us about human-caused incidents in a typical year.

'+ field("incidents","Human-error incidents per year","E.g. spills, injuries, releases, fines, loss of primary containment, LOTO violations, etc.")+ field("costPerIncident","Average cost per incident ($)","Fully loaded cost: response, repairs, fines, lost output.",1000)+ field("downtimeEvents","Human-caused downtime events per year","E.g. mis-valving, failed startups, process upsets, product mixes, quality losses, delayed restarts, etc.")+ field("costPerDowntime","Average cost per downtime event ($)","Lost production, scrap, overtime, contractors.",1000)+ slider("downtimeImprovement","Expected downtime reduction")+ '
'; } else if(step===1){ body = '

Job Qualification

How many operators do you train and how long does it take?

'+ field("employeesTrained","Employees trained per year","")+ field("trainingMonths","Typical training time (months)","")+ '
Voovio typically reduces training time by 50%.
'+ '
'; } else if(step===2){ body = '

Organizational Productivity

Industry benchmark of 10% is realized with most improvement initiatives.

'+ field("opsEmployees","Number of operations employees","")+ field("avgSalary","Average annual salary ($)","",1000)+ '
'; } else { body = '
'+ '
Estimated annual value created
'+ '
'+fmtC(c.total)+'
'+ '
Based on the inputs you provided.
'+ '
'+ stat("Operational efficiency",c.operationalEfficiency)+ stat("Training savings",c.trainingSavings)+ stat("Productivity gains",c.productivitySavings)+ '
'+ '
'+ (submitted ? '

Thanks — we\'ll be in touch

A Voovio expert will reach out to '+escapeHtml(email)+' shortly to book your demo and walk you through the numbers.

' : '

Get a demo

'+ '

Speak to one of our experts to see how you could create value for your organization with Voovio.

'+ '
'+ ''+ ''+ '
')+ '
'+ '
'; } var navHtml = step<3 ? ( '
'+ ''+ '
Estimated so far: '+fmtC(c.total)+'/yr
'+ ''+ '
' ) : ""; var stepperHtml = '
'+ STEPS.map(function(s,i){ var cls = i===step?'active':(i
'+(i'+s+'
'; }).join('') +'
'; document.getElementById('voovio-calc-root').innerHTML = '
'+ '
Savings Calculator
'+ '

See how much Voovio could save your plant

'+ '

Answer a few quick questions to estimate your annual savings on safety, training and productivity.

'+ '
'+ '
'+ '
'+ stepperHtml + '
'+ body + navHtml +'
'+ '
'+ '

Estimates use Voovio benchmarks. Actual savings vary by site and process.

'; bind(); } function stat(l,v){ return '
'+l+'
'+fmtC(v)+'
'; } function escapeHtml(s){ return String(s||"").replace(/[&<>"']/g,function(c){return {"&":"&","<":"<",">":">",'"':""","'":"'"}[c];}); } function bind(){ var root = document.getElementById('voovio-calc-root'); root.querySelectorAll('input[data-k]').forEach(function(el){ el.addEventListener('input', function(){ var k = el.getAttribute('data-k'); if(el.type==='range'){ var v = parseFloat(el.value); if(isNaN(v)) v=0; inputs[k] = v; } else { var raw = el.value.replace(/,/g,""); var v = parseFloat(raw); if(isNaN(v)) v=0; inputs[k] = v; var pos = el.selectionStart; var oldLen = el.value.length; el.value = v===0?"":v.toLocaleString("en-US"); var newLen = el.value.length; el.setSelectionRange(pos+newLen-oldLen, pos+newLen-oldLen); } var sv = root.querySelector('[data-sv="'+k+'"]'); if(sv) sv.textContent = v+'%'; if(el.type==='range'){ el.style.background = 'linear-gradient(to right,var(--vv-lime) 0%,var(--vv-lime) '+v+'%,var(--vv-border) '+v+'%,var(--vv-border) 100%)'; } var run = root.querySelector('.vv-running b'); if(run) run.textContent = fmtC(calc().total); }); if(el.type==='range'){ var v = el.value; el.style.background = 'linear-gradient(to right,var(--vv-lime) 0%,var(--vv-lime) '+v+'%,var(--vv-border) '+v+'%,var(--vv-border) 100%)'; } }); var nx = document.getElementById('vv-next'); if(nx) nx.onclick=function(){ step=Math.min(step+1,STEPS.length-1); render(); window.scrollTo({top:root.offsetTop-20,behavior:'smooth'}); }; var bk = document.getElementById('vv-back'); if(bk) bk.onclick=function(){ step=Math.max(step-1,0); render(); }; var fm = document.getElementById('vv-form'); if(fm) fm.onsubmit=function(e){ e.preventDefault(); email = document.getElementById('vv-email').value.trim(); if(!email) return; submitting = true; render(); var hsPayload = { fields:[{name:"email",value:email}], context:{pageUri:window.location.href,pageName:"Voovio Savings Calculator"} }; var done = function(){ submitting=false; submitted=true; render(); }; fetch("https://api.hsforms.com/submissions/v3/integration/submit/"+HUBSPOT_PORTAL+"/"+HUBSPOT_FORM, {method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(hsPayload)}) .then(done).catch(done); }; } render(); })();