Predictive Maintenance ROI Calculator
Try: Change the illustrative inputs, then restore the Chapter case.
Observe: Watch the results update immediately.
Explain: Explain how the assumptions affect the financial result.
Technical boundaries. Illustrative averages assume caught failures avoid all unplanned downtime and savings and later subscription costs accrue evenly for payback. The Year 1 cost is paid upfront and includes its subscription; later subscriptions are annual. NPV uses year-end savings at 10%. Planned repairs, emergency parts and overtime are excluded from savings.
All inputs are illustrative. Results update as you change them.
viewof machines = Inputs. range ([0 , 100 ], {label : "Machines" , step : 1 , value : 12 })
viewof failures = Inputs. range ([0 , 10 ], {label : "Failures per machine per year" , step : 0.1 , value : 1 })
viewof hours = Inputs. range ([0 , 48 ], {label : "Unplanned downtime per failure (hours)" , step : 1 , value : 8 })
viewof downtimeCost = Inputs. range ([0 , 100000 ], {label : "Unplanned downtime cost (USD/hour)" , step : 1000 , value : 50000 })
viewof capture = Inputs. range ([0 , 100 ], {label : "Failures caught before unplanned downtime (%)" , step : 1 , value : 70 })
viewof initial = Inputs. range ([0 , 500000 ], {label : "Year 1 total cost including subscription (USD)" , step : 100 , value : 127400 })
viewof ongoing = Inputs. range ([0 , 100000 ], {label : "Annual subscription after Year 1 (USD)" , step : 1000 , value : 24000 })
{
const button = html `<button type="button">Chapter case</button>`
button. addEventListener ("click" , () => {
(viewof machines). value = 12 ;
(viewof machines). dispatchEvent (new Event ("input" , {bubbles : true }));
(viewof failures). value = 1 ;
(viewof failures). dispatchEvent (new Event ("input" , {bubbles : true }));
(viewof hours). value = 8 ;
(viewof hours). dispatchEvent (new Event ("input" , {bubbles : true }));
(viewof downtimeCost). value = 50000 ;
(viewof downtimeCost). dispatchEvent (new Event ("input" , {bubbles : true }));
(viewof capture). value = 70 ;
(viewof capture). dispatchEvent (new Event ("input" , {bubbles : true }));
(viewof initial). value = 127400 ;
(viewof initial). dispatchEvent (new Event ("input" , {bubbles : true }));
(viewof ongoing). value = 24000 ;
(viewof ongoing). dispatchEvent (new Event ("input" , {bubbles : true }));
})
return button
}
annualFailures = machines * failures
prevented = annualFailures * capture / 100
remainingHours = (annualFailures - prevented) * hours
baselineCost = annualFailures * hours * downtimeCost
remainingCost = remainingHours * downtimeCost
grossSavings = baselineCost - remainingCost
payback = initial === 0 ? (grossSavings > ongoing ? 0 : null ) : grossSavings >= initial ? initial / grossSavings * 12 : grossSavings > ongoing ? 12 + (initial - grossSavings) / (grossSavings - ongoing) * 12 : null
chapterCase = machines === 12 && failures === 1 && hours === 8 && downtimeCost === 50000 && capture === 70 && initial === 127400 && ongoing === 24000
npv = - initial + Array . from ({length : 5 }, (_, i) => (grossSavings - (i === 0 ? 0 : ongoing)) / 1.1 ** (i + 1 )). reduce ((a, b) => a + b, 0 )
html `<div aria-live="polite"><p>Baseline unplanned downtime: ${ (annualFailures * hours). toFixed (1 )} hours/year; USD ${ baselineCost. toLocaleString (undefined , {maximumFractionDigits : 0 })} /year.</p><p>Prevented failures: ${ prevented. toFixed (1 )} /year; remaining unplanned downtime: ${ remainingHours. toFixed (1 )} hours/year, costing USD ${ remainingCost. toLocaleString (undefined , {maximumFractionDigits : 0 })} /year.</p><p>Gross downtime savings: USD ${ grossSavings. toLocaleString (undefined , {maximumFractionDigits : 0 })} /year; net Year 1 benefit: USD ${ (grossSavings - initial). toLocaleString (undefined , {maximumFractionDigits : 0 })} .</p><p>Payback including later subscription costs: ${ payback === null ? "not reached under these assumptions" : ` ${ payback. toFixed (3 )} months (~ ${ Math . round (payback * 365 / 12 )} days) ${ chapterCase ? `; chapter comparison: ${ (Math . floor ((payback + 1e-10 ) * 100 ) / 100 ). toFixed (2 )} months (truncated)` : "" } ` } ; annual net benefit from Year 2: USD ${ (grossSavings - ongoing). toLocaleString (undefined , {maximumFractionDigits : 0 })} .</p><p>5-year NPV at 10%: USD ${ (npv / 1e6 ). toFixed (2 )} M.</p></div>`
Back to the chapter