{
const entranceBeacons = 3;
const highMarginBeacons = Math.floor((storeSize / 200) * 0.4);
const promoBeacons = 15;
const checkoutBeacons = 4;
const totalBeacons = entranceBeacons + highMarginBeacons + promoBeacons + checkoutBeacons;
const beaconInvestment = totalBeacons * beaconCost;
const totalCost = beaconInvestment + cloudCost;
const annualVisitors = monthlyVisitors * 12;
const potentialLift = annualVisitors * (baselineConversion / 100) * avgBasket * (conversionLift / 100);
const capturedLift = potentialLift * 0.01; // Assumed 1% capture rate
const roiPercent = (((capturedLift - totalCost) / totalCost) * 100).toFixed(0);
const div = document.createElement("div");
div.style.cssText = `
background: linear-gradient(135deg, #3498DB 0%, #9B59B6 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;">
BLE Beacon Deployment Calculator
</h3>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-top: 20px;">
<div style="background: rgba(255,255,255,0.1); padding: 12px; border-radius: 8px;">
<div style="font-size: 13px; opacity: 0.9;">Entrance Beacons</div>
<div style="font-size: 24px; font-weight: bold; color: #E67E22;">${entranceBeacons}</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 12px; border-radius: 8px;">
<div style="font-size: 13px; opacity: 0.9;">High-Margin Depts</div>
<div style="font-size: 24px; font-weight: bold; color: #E67E22;">${highMarginBeacons}</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 12px; border-radius: 8px;">
<div style="font-size: 13px; opacity: 0.9;">Promotional Displays</div>
<div style="font-size: 24px; font-weight: bold; color: #E67E22;">${promoBeacons}</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 12px; border-radius: 8px;">
<div style="font-size: 13px; opacity: 0.9;">Checkout Area</div>
<div style="font-size: 24px; font-weight: bold; color: #E67E22;">${checkoutBeacons}</div>
</div>
</div>
<div style="margin-top: 20px; padding: 20px; background: rgba(255,255,255,0.15); border-radius: 8px; border: 2px solid #16A085;">
<div style="font-weight: bold; font-size: 18px; margin-bottom: 15px; color: #E67E22;">Investment Summary</div>
<div style="display: flex; justify-content: space-between; margin-top: 10px; font-size: 15px;">
<span>Total Beacons:</span>
<span style="font-weight: bold; color: #16A085;">${totalBeacons}</span>
</div>
<div style="display: flex; justify-content: space-between; margin-top: 10px; font-size: 15px;">
<span>Beacon Hardware:</span>
<span style="font-weight: bold;">$${beaconInvestment.toLocaleString()}</span>
</div>
<div style="display: flex; justify-content: space-between; margin-top: 10px; font-size: 15px;">
<span>Cloud Platform (Year 1):</span>
<span style="font-weight: bold;">$${cloudCost.toLocaleString()}</span>
</div>
<div style="display: flex; justify-content: space-between; margin-top: 15px; padding-top: 15px; border-top: 2px solid rgba(255,255,255,0.3); font-size: 18px;">
<span style="font-weight: bold;">Total Investment:</span>
<span style="font-weight: bold; color: #E67E22;">$${totalCost.toLocaleString()}</span>
</div>
</div>
<div style="margin-top: 20px; padding: 20px; background: rgba(255,255,255,0.2); border-radius: 8px;">
<div style="font-weight: bold; font-size: 18px; margin-bottom: 15px;">ROI Analysis</div>
<div style="display: flex; justify-content: space-between; margin-top: 10px;">
<span>Potential Annual Lift:</span>
<span style="font-weight: bold;">$${potentialLift.toLocaleString('en-US', {maximumFractionDigits: 0})}</span>
</div>
<div style="display: flex; justify-content: space-between; margin-top: 10px;">
<span>Captured Value (1%):</span>
<span style="font-weight: bold; color: #16A085;">$${capturedLift.toLocaleString('en-US', {maximumFractionDigits: 0})}</span>
</div>
<div style="display: flex; justify-content: space-between; margin-top: 15px; padding-top: 15px; border-top: 2px solid rgba(255,255,255,0.3); font-size: 20px;">
<span style="font-weight: bold;">ROI:</span>
<span style="font-weight: bold; color: #E67E22; font-size: 24px;">${roiPercent}%</span>
</div>
</div>
`;
return div;
}Beacon Deployment Calculator
Beacon Deployment Calculator
animation
retail
applications
Try Change Store Size (sq ft), then press Calculate ROI.
Observe Watch Total Beacons, Total Investment and ROI after pressing Calculate ROI.
Explain Explain why Captured Value (1%) changes when Monthly Visitors changes.
Technical boundaries. The calculation assumes a 1% capture rate. Entrance Beacons, Promotional Displays and Checkout Area counts remain fixed.