{
const investment = (numSKUs * sensorCost) + 450 + (platformCost * 12);
const currentDetected = numSKUs * (stockoutRate / 100) * 0.55;
const smartDetected = numSKUs * (stockoutRate / 100) * 0.95;
const additionalDetections = smartDetected - currentDetected;
const dailyRecovered = additionalDetections * 4 * lossPerHour;
const annualBenefit = dailyRecovered * 365;
const roi = (annualBenefit / investment).toFixed(2);
const totalInvestment = investment * numStores;
const totalBenefit = annualBenefit * numStores;
const div = document.createElement("div");
div.style.cssText = `
background: linear-gradient(135deg, #2C3E50 0%, #16A085 100%);
padding: 25px;
border-radius: 12px;
color: white;
font-family: Arial, sans-serif;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
`;
div.innerHTML = `
<h3 style="margin-top:0; color: white; border-bottom: 2px solid #E67E22; padding-bottom: 10px;">
Smart Shelf ROI Analysis
</h3>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 20px;">
<div style="background: rgba(255,255,255,0.1); padding: 15px; border-radius: 8px; border-left: 4px solid #E67E22;">
<div style="font-size: 14px; opacity: 0.9;">Investment per Store</div>
<div style="font-size: 28px; font-weight: bold; margin-top: 5px;">$${investment.toLocaleString()}</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 15px; border-radius: 8px; border-left: 4px solid #3498DB;">
<div style="font-size: 14px; opacity: 0.9;">Annual Benefit per Store</div>
<div style="font-size: 28px; font-weight: bold; margin-top: 5px;">$${annualBenefit.toLocaleString('en-US', {maximumFractionDigits: 0})}</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 15px; border-radius: 8px; border-left: 4px solid #16A085;">
<div style="font-size: 14px; opacity: 0.9;">ROI (Year 1)</div>
<div style="font-size: 28px; font-weight: bold; margin-top: 5px;">${roi}x</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 15px; border-radius: 8px; border-left: 4px solid #9B59B6;">
<div style="font-size: 14px; opacity: 0.9;">Additional Detections/Day</div>
<div style="font-size: 28px; font-weight: bold; margin-top: 5px;">${additionalDetections.toFixed(1)}</div>
</div>
</div>
<div style="margin-top: 20px; padding: 15px; background: rgba(255,255,255,0.15); border-radius: 8px;">
<div style="font-weight: bold; margin-bottom: 10px; color: #E67E22;">Total Deployment (${numStores} stores)</div>
<div style="display: flex; justify-content: space-between; margin-top: 8px;">
<span>Total Investment:</span>
<span style="font-weight: bold;">$${totalInvestment.toLocaleString()}</span>
</div>
<div style="display: flex; justify-content: space-between; margin-top: 8px;">
<span>Total Annual Benefit:</span>
<span style="font-weight: bold;">$${totalBenefit.toLocaleString('en-US', {maximumFractionDigits: 0})}</span>
</div>
</div>
`;
return div;
}Interactive Calculator: Smart Shelf ROI
Interactive Calculator: Smart Shelf ROI
animation
retail
applications
Try Change Out-of-Stock Rate (%), then press Calculate ROI.
Observe After Calculate ROI, watch Additional Detections/Day, Annual Benefit per Store and ROI (Year 1).
Explain Describe how Number of Stores changes Total Investment and Total Annual Benefit after Calculate ROI.
Technical boundaries. Detection assumes 55% current detection and 95% smart detection. Annual benefit uses 4 hours of recovered sales daily across 365 days.