viewof num_machines = Inputs.range([1, 50], {value: 5, step: 1, label: "Number of machines"})
viewof downtime_cost_hour = Inputs.range([1000, 100000], {value: 8000, step: 1000, label: "Downtime cost ($/hour)"})
viewof failures_per_year = Inputs.range([1, 10], {value: 3, step: 1, label: "Failures per machine per year"})
viewof hours_per_failure = Inputs.range([1, 24], {value: 6, step: 1, label: "Hours per failure"})
viewof sensor_cost_per_machine = Inputs.range([500, 10000], {value: 2000, step: 500, label: "Sensor cost per machine ($)"})
viewof gateway_cost = Inputs.range([1000, 20000], {value: 5000, step: 1000, label: "Gateway cost ($)"})
viewof prevention_rate = Inputs.range([0.5, 0.9], {value: 0.7, step: 0.05, label: "Failure prevention rate"})
{
const total_failures = num_machines * failures_per_year;
const annual_downtime_cost = total_failures * hours_per_failure * downtime_cost_hour;
const total_investment = (num_machines * sensor_cost_per_machine) + gateway_cost;
const prevented_failures = total_failures * prevention_rate;
const savings = prevented_failures * hours_per_failure * downtime_cost_hour;
const net_benefit = savings - total_investment;
const payback_days = Math.round((total_investment / savings) * 365);
const c = {navy: "#2C3E50", teal: "#16A085", orange: "#E67E22", blue: "#3498DB", gray: "#7F8C8D", red: "#E74C3C"};
return html`<div style="font-family:Arial;padding:20px;background:#f8f9fa;border-radius:8px;border-left:4px solid ${c.teal}"><div style="color:${c.navy};margin-top:0;font-size:1.1em;font-weight:bold">IIoT ROI Results</div><div style="display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:15px"><div style="background:white;padding:15px;border-radius:6px;border-top:3px solid ${c.orange}"><div style="color:${c.gray};font-size:0.85em;margin-bottom:5px">Current Annual Downtime Cost</div><div style="color:${c.navy};font-size:1.8em;font-weight:bold">$${annual_downtime_cost.toLocaleString()}</div><div style="color:${c.gray};font-size:0.75em;margin-top:5px">${total_failures} failures × ${hours_per_failure} hrs × $${downtime_cost_hour.toLocaleString()}/hr</div></div><div style="background:white;padding:15px;border-radius:6px;border-top:3px solid ${c.teal}"><div style="color:${c.gray};font-size:0.85em;margin-bottom:5px">Total IIoT Investment</div><div style="color:${c.navy};font-size:1.8em;font-weight:bold">$${total_investment.toLocaleString()}</div><div style="color:${c.gray};font-size:0.75em;margin-top:5px">${num_machines} machines × $${sensor_cost_per_machine.toLocaleString()} + $${gateway_cost.toLocaleString()}</div></div><div style="background:white;padding:15px;border-radius:6px;border-top:3px solid ${c.blue}"><div style="color:${c.gray};font-size:0.85em;margin-bottom:5px">Annual Savings</div><div style="color:${c.teal};font-size:1.8em;font-weight:bold">$${savings.toLocaleString()}</div><div style="color:${c.gray};font-size:0.75em;margin-top:5px">${prevented_failures.toFixed(1)} failures prevented × ${hours_per_failure} hrs</div></div><div style="background:white;padding:15px;border-radius:6px;border-top:3px solid ${net_benefit>0?c.teal:c.red}"><div style="color:${c.gray};font-size:0.85em;margin-bottom:5px">Payback Period</div><div style="color:${net_benefit>0?c.teal:c.red};font-size:1.8em;font-weight:bold">${payback_days} days</div><div style="color:${c.gray};font-size:0.75em;margin-top:5px">Net Year 1: $${net_benefit.toLocaleString()}</div></div></div><div style="margin-top:20px;padding:15px;background:${net_benefit>0?'#d4edda':'#f8d7da'};border-radius:6px;border-left:4px solid ${net_benefit>0?c.teal:c.red}"><strong style="color:${c.navy}">Key Insight:</strong> <span style="color:${c.gray}">${net_benefit>0?`With ${(prevention_rate*100).toFixed(0)}% failure prevention, the IIoT investment pays for itself in ${payback_days} days and delivers $${net_benefit.toLocaleString()} net benefit in Year 1.`:'The investment does not break even in Year 1. Consider increasing prevention rate or reducing sensor costs.'}</span></div></div>`;
}IIoT ROI Analysis
IIoT ROI Analysis
animation
iiot
industrial-operations
Try Change Failure prevention rate while keeping machine costs fixed. Then press Calculate payback period.
Observe After pressing Calculate payback period, watch annual savings and payback period as Failure prevention rate changes.
Explain Describe how Failure prevention rate determines prevented failures and annual savings after you press Calculate payback period.
Technical boundaries. Investment includes sensor costs per machine and gateway cost. Savings use prevented failures, hours per failure, and downtime cost; payback uses 365 days.
NoteIIoT ROI Analysis
Use this calculator to estimate ROI for an IIoT predictive maintenance deployment.