viewof customer_ltv = Inputs.range([100, 3000], {
label: "Customer Lifetime Value (LTV) ($)",
value: 1800,
step: 100
})
viewof customer_acquisition_cost = Inputs.range([50, 1500], {
label: "Customer Acquisition Cost (CAC) ($)",
value: 600,
step: 50
})
viewof expected_paid_lifetime_months = Inputs.range([1, 60], {
label: "Expected paid lifetime (months)",
value: 24,
step: 1
})
// Calculate ratio
ltv_cac_ratio = customer_ltv / customer_acquisition_cost
monthlyContribution = customer_ltv / expected_paid_lifetime_months
payback_months = Math.round((customer_acquisition_cost / monthlyContribution) * 10) / 10
// Determine health status
function getHealthStatus(ratio) {
if (ratio >= 3) return { status: 'Excellent', color: '#0F766E' };
if (ratio >= 2) return { status: 'Acceptable', color: '#B45309' };
return { status: 'Unhealthy', color: '#B91C1C' };
}
health = getHealthStatus(ltv_cac_ratio)
html`<div style="margin-top: 20px; padding: 15px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid ${health.color};">
<div style="margin: 0 0 0.75rem; color: #1f2937; font-size: 1rem; font-weight: 700;">Business Model Health Assessment</div>
<div style="margin-top: 15px; padding: 15px; background: white; border-radius: 6px; border: 2px solid ${health.color};">
<div style="text-align: center;">
<div style="color: #4B5563; font-size: 0.85em; margin-bottom: 8px;">LTV:CAC Ratio</div>
<div style="color: ${health.color}; font-size: 2.5em; font-weight: bold;">
${ltv_cac_ratio.toFixed(1)}:1
</div>
<div style="color: ${health.color}; font-size: 1.1em; margin-top: 8px; font-weight: 600;">
${health.status}
</div>
</div>
</div>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; 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 Value</div>
<div style="color: #0F766E; font-size: 1.3em; font-weight: bold;">${'$'}${customer_ltv.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;">Acquisition Cost</div>
<div style="color: #B45309; font-size: 1.3em; font-weight: bold;">${'$'}${customer_acquisition_cost.toFixed(0)}</div>
</div>
</div>
<div style="margin-top: 12px; padding: 12px; background: white; border-radius: 6px; border: 1px solid #dee2e6;">
<div style="color: #4B5563; font-size: 0.85em; margin-bottom: 5px;">Estimated Payback Period</div>
<div style="color: #1F2937; font-size: 1.2em; font-weight: bold;">${payback_months} months</div>
<div style="color: #4B5563; font-size: 0.85em; margin-top: 6px;">Simple estimate assuming constant monthly contribution over ${expected_paid_lifetime_months} months.</div>
</div>
<div style="margin-top: 12px; padding: 10px; background: ${health.color}15; border-radius: 6px; border: 1px solid ${health.color}40;">
<strong style="color: #1F2937;">Benchmark:</strong>
<ul style="margin: 8px 0 0 0; padding-left: 20px; color: #1F2937;">
<li><strong>≥ 3:1</strong> = Healthy, sustainable growth</li>
<li><strong>2:1 - 3:1</strong> = Acceptable, room for improvement</li>
<li><strong>< 2:1</strong> = Burning cash, needs optimization</li>
</ul>
</div>
</div>`Interactive LTV:CAC Ratio Calculator
Interactive LTV:CAC Ratio Calculator
animation
iot
business-models
Try Change Expected paid lifetime (months) from 24 to 60.
Observe Watch Estimated Payback Period and LTV:CAC Ratio as expected paid lifetime changes from 24 to 60.
Explain Explain why changing expected paid lifetime from 24 to 60 changes payback but leaves LTV:CAC Ratio unchanged.
Technical boundaries. Estimated payback assumes constant monthly contribution over the expected paid lifetime. Health status uses only the LTV:CAC ratio thresholds.
Assess the health of your IoT business model: