viewof thermostatCost = Inputs.range([100, 500], {
value: 249,
step: 1,
label: "Smart Thermostat Cost ($)"
})
viewof hvacPercent = Inputs.range([30, 60], {
value: 45,
step: 1,
label: "HVAC % of Total Bill"
})
viewof annualBill = Inputs.range([1000, 5000], {
value: 2400,
step: 100,
label: "Annual Electricity Bill ($)"
})
viewof hvacSavingsPercent = Inputs.range([10, 25], {
value: 18,
step: 1,
label: "Expected HVAC Savings (%)"
})
hvacCost = annualBill * (hvacPercent / 100)
hvacSavings = hvacCost * (hvacSavingsPercent / 100)
paybackMonths = (thermostatCost / hvacSavings) * 12
roi = (hvacSavings / thermostatCost) * 100
html`<div style="background: #f8f9fa; padding: 20px; border-radius: 8px; border-left: 4px solid #16A085;">
<h4 style="color: #2C3E50; margin-top: 0;">Results</h4>
<div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px;">
<div>
<div style="font-size: 14px; color: #7F8C8D;">Annual HVAC Cost</div>
<div style="font-size: 24px; font-weight: bold; color: #2C3E50;">$${hvacCost.toFixed(0)}</div>
</div>
<div>
<div style="font-size: 14px; color: #7F8C8D;">Annual Savings</div>
<div style="font-size: 24px; font-weight: bold; color: #16A085;">$${hvacSavings.toFixed(0)}</div>
</div>
<div>
<div style="font-size: 14px; color: #7F8C8D;">Payback Period</div>
<div style="font-size: 24px; font-weight: bold; color: #E67E22;">${paybackMonths.toFixed(1)} months</div>
</div>
<div>
<div style="font-size: 14px; color: #7F8C8D;">First-Year ROI</div>
<div style="font-size: 24px; font-weight: bold; color: #3498DB;">${roi.toFixed(1)}%</div>
</div>
</div>
</div>`Smart Home ROI Calculator
Smart Home ROI Calculator
animation
applications
smart-home
Try Change Expected HVAC Savings (%), then press Calculate ROI.
Observe After Calculate ROI, watch Annual Savings, Payback Period and First-Year ROI.
Explain Describe how Annual HVAC Cost and Expected HVAC Savings (%) determine Annual Savings after Calculate ROI.
Technical boundaries. Annual Savings uses the HVAC share of the electricity bill and expected HVAC savings. Payback Period uses thermostat cost divided by savings.