Edge vs Cloud Breakeven Calculator
Try Change Number of gateways, then press Calculate.
Observe After Calculate, compare Monthly Cost Comparison totals and Verdict.
Explain Describe how gateway price and maintenance change Verdict after Calculate.
Calculate
Reset
Technical boundaries. Edge data reduction is fixed at 0.95, and reduced cloud compute is 0.1 times cloud compute. Gateway hardware is amortized over 36 months.
viewof costSensorCount = Inputs. range ([100 , 50000 ], {value : 5000 , step : 100 , label : "Number of sensors" })
viewof costDataPerSensorMB = Inputs. range ([0.01 , 10 ], {value : 0.5 , step : 0.01 , label : "Data per sensor (MB/month)" })
viewof costCloudPerGB = Inputs. range ([0.01 , 1.00 ], {value : 0.09 , step : 0.01 , label : "Assumed metered uplink ($/GB)" })
viewof costCloudCompute = Inputs. range ([10 , 500 ], {value : 50 , step : 10 , label : "Cloud compute ($/month)" })
viewof costGatewayPrice = Inputs. range ([50 , 500 ], {value : 200 , step : 10 , label : "Gateway price ($)" })
viewof costGatewayCount = Inputs. range ([1 , 200 ], {value : 25 , step : 1 , label : "Number of gateways" })
viewof costMaintenancePerGw = Inputs. range ([0 , 20 ], {value : 5 , step : 1 , label : "Maintenance per gateway ($/month)" })
costTotalDataMB = costSensorCount * costDataPerSensorMB
costTotalDataGB = costTotalDataMB / 1000
costCloudOnly = costCloudCompute + (costTotalDataGB * costCloudPerGB)
costEdgeReduction = 0.95
costEdgeDataGB = costTotalDataGB * (1 - costEdgeReduction)
costEdgeCloud = (costCloudCompute * 0.1 ) + (costEdgeDataGB * costCloudPerGB)
costEdgeHardwareMonthly = (costGatewayCount * costGatewayPrice) / 36
costEdgeMaintenance = costGatewayCount * costMaintenancePerGw
costEdgeTotal = costEdgeCloud + costEdgeHardwareMonthly + costEdgeMaintenance
costEdgeSaves = costCloudOnly > costEdgeTotal
costBreakevenSensors = Math . ceil (Math . max (0 , (costCloudCompute * 0.1 + costEdgeHardwareMonthly + costEdgeMaintenance - costCloudCompute) / ((costDataPerSensorMB / 1000 ) * costCloudPerGB * costEdgeReduction)))
html `<div style="background: var(--bs-light, #f8f9fa); padding: 1rem; border-radius: 8px; border-left: 4px solid #2C3E50; margin-top: 0.5rem;">
<h4 style="color: #2C3E50; margin-top: 0;">Monthly Cost Comparison</h4>
<div class="edge-processing-compare-grid">
<div class="edge-processing-compare-card" style="background: white; padding: 0.75rem; border-radius: 6px; border: 2px solid ${ costEdgeSaves ? '#7F8C8D' : '#16A085' } ;">
<h5 style="color: #3498DB; margin-top: 0;">Cloud-Only</h5>
<p>Compute: $ ${ costCloudCompute. toFixed (0 )} </p>
<p>Uplink ( ${ costTotalDataGB. toFixed (1 )} GB): $ ${ (costTotalDataGB * costCloudPerGB). toFixed (2 )} </p>
<p style="font-weight: bold; font-size: 1.1em;">Total: $ ${ costCloudOnly. toFixed (2 )} /month</p>
</div>
<div class="edge-processing-compare-card" style="background: white; padding: 0.75rem; border-radius: 6px; border: 2px solid ${ costEdgeSaves ? '#16A085' : '#7F8C8D' } ;">
<h5 style="color: #E67E22; margin-top: 0;">Edge + Cloud</h5>
<p>Cloud (reduced): $ ${ costEdgeCloud. toFixed (2 )} </p>
<p>Hardware (amortized 3yr): $ ${ costEdgeHardwareMonthly. toFixed (2 )} </p>
<p>Maintenance: $ ${ costEdgeMaintenance. toFixed (2 )} </p>
<p style="font-weight: bold; font-size: 1.1em;">Total: $ ${ costEdgeTotal. toFixed (2 )} /month</p>
</div>
</div>
<p style="margin-top: 0.75rem; font-size: 1.05em;"><strong>Verdict:</strong> ${ costEdgeSaves ? '<span style="color: #16A085;">Edge saves $' + (costCloudOnly - costEdgeTotal). toFixed (2 ) + '/month (' + (((costCloudOnly - costEdgeTotal) / costCloudOnly) * 100 ). toFixed (0 ) + '% savings)</span>' : '<span style="color: #E74C3C;">Cloud-only is cheaper by $' + (costEdgeTotal - costCloudOnly). toFixed (2 ) + '/month. Edge adds cost without sufficient data volume to justify it.</span>' } </p>
<p style="color: #7F8C8D; font-size: 0.9em;">Total fleet data: ${ costTotalDataGB. toFixed (1 )} GB/month. ${ costTotalDataGB > 10 ? "High data volume -- compare the full monthly totals above." : "Low data volume -- cloud may be more cost-effective." } </p>
</div>`
Back to the chapter