Cold Chain Cost Calculator
Try Change Number of trucks, then press Calculate.
Observe After Calculate, watch Monthly cellular cost, Monthly savings, and Payback.
Explain Describe how Bytes per reading affects Monthly savings after Calculate.
Calculate
Reset
Technical boundaries. Cloud-only calculations use 1 reading per sensor per second and 30 days per month. Edge calculations use 4 summary values per sensor per minute, 8 bytes each.
Cold Chain Cost Calculator
Adjust the parameters below to explore how edge processing affects your cold chain monitoring costs.
viewof ccTrucks = Inputs. range ([10 , 200 ], {value : 50 , step : 10 , label : "Number of trucks" })
viewof ccSensorsPerTruck = Inputs. range ([5 , 50 ], {value : 20 , step : 5 , label : "Sensors per truck" })
viewof ccBytesPerReading = Inputs. range ([4 , 32 ], {value : 16 , step : 4 , label : "Bytes per reading" })
viewof ccCellularCostPerMB = Inputs. range ([0.01 , 0.50 ], {value : 0.10 , step : 0.01 , label : "Cellular cost ($/MB)" })
viewof ccGatewayCost = Inputs. range ([15 , 100 ], {value : 35 , step : 5 , label : "Gateway cost per truck ($)" })
ccRawBytesPerTruck = ccSensorsPerTruck * 1 * ccBytesPerReading
ccFleetBytesPerSec = ccTrucks * ccRawBytesPerTruck
ccDailyMB = ccFleetBytesPerSec * 86400 / 1e6
ccMonthlyMB = ccDailyMB * 30
ccMonthlyCostCloud = ccMonthlyMB * ccCellularCostPerMB
// Edge calculations: 4 summary values per sensor per minute, 8 bytes each
ccEdgeBytesPerTruck = ccSensorsPerTruck * 4 * 8 / 60
ccEdgeFleetBytesPerSec = ccTrucks * ccEdgeBytesPerTruck
ccEdgeDailyMB = ccEdgeFleetBytesPerSec * 86400 / 1e6
ccEdgeMonthlyMB = ccEdgeDailyMB * 30
ccMonthlyCostEdge = ccEdgeMonthlyMB * ccCellularCostPerMB
// Savings
ccTotalGatewayCost = ccTrucks * ccGatewayCost
ccMonthlySavings = ccMonthlyCostCloud - ccMonthlyCostEdge
ccPaybackDays = ccMonthlySavings > 0 ? (ccTotalGatewayCost / ccMonthlySavings) * 30 : Infinity
ccReductionPercent = ccMonthlyCostCloud > 0 ? ((ccMonthlyCostCloud - ccMonthlyCostEdge) / ccMonthlyCostCloud) * 100 : 0
html `<div style="background: var(--bs-light, #f8f9fa); padding: 1.2rem; border-radius: 8px; border-left: 4px solid #16A085; margin-top: 0.5rem;">
<h4 style="color: var(--bs-body-color); margin-top: 0;">Cold Chain Cost Comparison</h4>
<table style="width: 100%; border-collapse: collapse; color: var(--bs-body-color);">
<tr style="border-bottom: 2px solid #16A085;">
<th style="text-align: left; padding: 6px;">Metric</th>
<th style="text-align: right; padding: 6px;">Cloud-Only</th>
<th style="text-align: right; padding: 6px;">With Edge</th>
</tr>
<tr style="border-bottom: 1px solid #ddd;">
<td style="padding: 6px;">Daily data volume</td>
<td style="text-align: right; padding: 6px;"> ${ ccDailyMB >= 1000 ? (ccDailyMB / 1000 ). toFixed (2 ) + " GB" : ccDailyMB. toFixed (1 ) + " MB" } </td>
<td style="text-align: right; padding: 6px;"> ${ ccEdgeDailyMB. toFixed (1 )} MB</td>
</tr>
<tr style="border-bottom: 1px solid #ddd;">
<td style="padding: 6px;">Monthly cellular cost</td>
<td style="text-align: right; padding: 6px;">$ ${ ccMonthlyCostCloud. toFixed (0 )} </td>
<td style="text-align: right; padding: 6px;">$ ${ ccMonthlyCostEdge. toFixed (0 )} </td>
</tr>
<tr style="border-bottom: 1px solid #ddd;">
<td style="padding: 6px;">Data reduction</td>
<td style="text-align: right; padding: 6px;">--</td>
<td style="text-align: right; padding: 6px;"> ${ (ccDailyMB / ccEdgeDailyMB). toFixed (0 )} x</td>
</tr>
</table>
<p style="margin-top: 0.8rem; margin-bottom: 0.3rem;"><strong>Monthly savings:</strong> $ ${ ccMonthlySavings. toFixed (0 )} ( ${ ccReductionPercent. toFixed (0 )} % reduction)</p>
<p style="margin-bottom: 0;"><strong>Gateway investment:</strong> $ ${ ccTotalGatewayCost. toFixed (0 )} one-time | <strong>Payback:</strong> ${ ccPaybackDays < 1 ? "< 1 day" : ccPaybackDays. toFixed (0 ) + " days" } </p>
</div>`
Back to the chapter