viewof hardware_price = Inputs.range([0, 500], {
label: "Hardware Price ($)",
value: 200,
step: 10
})
viewof monthly_fee = Inputs.range([0, 100], {
label: "Monthly Subscription ($)",
value: 50,
step: 5
})
viewof months = Inputs.range([12, 60], {
label: "Contract Duration (months)",
value: 24,
step: 6
})
// Calculate undiscounted lifetime revenue; costs are not included
hardwareSaleLtv = hardware_price
subscriptionModelLtv = hardware_price + (monthly_fee * months)
subscriptionLtvMultiplier = subscriptionModelLtv / hardwareSaleLtv
// Display results with IEEE color palette
html`<div style="margin-top: 20px; padding: 15px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #0F766E;">
<div style="margin: 0 0 0.75rem; color: #1f2937; font-size: 1rem; font-weight: 700;">Revenue Comparison Results</div>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-top: 15px;">
<div style="padding: 12px; background: white; border-radius: 6px; border: 1px solid #dee2e6;">
<div style="color: #4B5563; font-size: 0.85em; margin-bottom: 5px;">Lifetime revenue</div>
<div style="color: #1F2937; font-size: 1.5em; font-weight: bold;">${'$'}${hardwareSaleLtv.toFixed(0)}</div>
</div>
<div style="padding: 12px; background: white; border-radius: 6px; border: 1px solid #dee2e6;">
<div style="color: #4B5563; font-size: 0.85em; margin-bottom: 5px;">Lifetime revenue</div>
<div style="color: #0F766E; font-size: 1.5em; font-weight: bold;">${'$'}${subscriptionModelLtv.toFixed(0)}</div>
</div>
</div>
<div style="margin-top: 15px; padding: 12px; background: white; border-radius: 6px; border: 1px solid #dee2e6;">
<div style="color: #4B5563; font-size: 0.85em; margin-bottom: 5px;">Revenue multiplier</div>
<div style="color: #1F2937; font-size: 1.3em; font-weight: bold;">
${subscriptionLtvMultiplier.toFixed(1)}x
</div>
</div>
<div style="margin-top: 12px; padding: 10px; background: #E8F5F3; border-radius: 6px;">
<strong style="color: #1F2937;">Insight:</strong> <span style="color: #1F2937;">
The subscription model generates <strong>${'$'}${(subscriptionModelLtv - hardwareSaleLtv).toFixed(0)}</strong> more revenue
over ${months} months, a <strong>${((subscriptionLtvMultiplier - 1) * 100).toFixed(0)}%</strong> increase.
</span>
</div>
</div>`Interactive LTV Calculator
Interactive LTV Calculator
animation
iot
business-models
Try Change Contract Duration (months) from 24 to 60.
Observe Compare Lifetime revenue and Revenue multiplier over 24 and 60 months.
Explain Explain why subscription lifetime revenue increases when contract duration changes from 24 to 60 months.
Technical boundaries. The calculation uses undiscounted lifetime revenue; costs are not included. Monthly subscription revenue stays constant throughout the selected contract duration.
Interactive LTV Calculator
Try calculating the lifetime value difference yourself: