EV Charging Economics
Try Change Off-Peak Rate ($/kWh), then press Calculate charging costs.
Observe Watch Off-Peak + DR and Smart Charging Savings after pressing Calculate charging costs.
Explain Describe how Calculate charging costs uses daily driving distance and vehicle efficiency.
Calculate charging costs
Reset
Technical boundaries. Annual costs repeat the daily energy requirement for 365 days. Off-Peak + DR subtracts the annual demand response incentive from off-peak charging costs.
EV Charging Economics
Compare charging costs under different rate structures:
viewof daily_miles = Inputs. range ([10 , 100 ], {
label : "Daily Driving Distance (miles)" ,
step : 5 ,
value : 30
})
viewof ev_efficiency = Inputs. range ([2 , 6 ], {
label : "Vehicle Efficiency (miles/kWh)" ,
step : 0.5 ,
value : 4
})
viewof flat_rate = Inputs. range ([0.05 , 0.30 ], {
label : "Flat Rate ($/kWh)" ,
step : 0.01 ,
value : 0.12
})
viewof peak_rate = Inputs. range ([0.10 , 0.40 ], {
label : "Peak Rate ($/kWh)" ,
step : 0.01 ,
value : 0.18
})
viewof offpeak_rate = Inputs. range ([0.03 , 0.15 ], {
label : "Off-Peak Rate ($/kWh)" ,
step : 0.01 ,
value : 0.08
})
viewof dr_incentive = Inputs. range ([0 , 200 ], {
label : "Demand Response Incentive ($/year)" ,
step : 10 ,
value : 50
})
daily_kwh = daily_miles / ev_efficiency
daily_cost_flat = daily_kwh * flat_rate
daily_cost_peak = daily_kwh * peak_rate
daily_cost_offpeak = daily_kwh * offpeak_rate
annual_cost_flat = daily_cost_flat * 365
annual_cost_peak = daily_cost_peak * 365
annual_cost_offpeak = daily_cost_offpeak * 365 - dr_incentive
savings_vs_peak = annual_cost_peak - annual_cost_offpeak
savings_vs_flat = annual_cost_flat - annual_cost_offpeak
html `<div style="background: #2C3E50; color: white; padding: 20px; border-radius: 8px; margin-top: 20px;">
<h3 style="margin-top: 0; color: #16A085;">EV Charging Cost Comparison</h3>
<div style="margin-top: 15px;">
<div style="font-size: 0.9em; color: #E67E22;">Daily Energy Requirement</div>
<div style="font-size: 1.5em; font-weight: bold; margin-bottom: 15px;"> ${ daily_kwh. toFixed (2 )} kWh/day</div>
</div>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-top: 15px;">
<div style="padding: 15px; background: rgba(231, 76, 60, 0.3); border-radius: 6px;">
<div style="font-size: 0.85em; color: #E67E22;">Peak Charging</div>
<div style="font-size: 1.4em; font-weight: bold;">$ ${ annual_cost_peak. toFixed (0 )} /year</div>
<div style="font-size: 0.8em; margin-top: 5px;">($ ${ daily_cost_peak. toFixed (2 )} /day)</div>
</div>
<div style="padding: 15px; background: rgba(127, 140, 141, 0.3); border-radius: 6px;">
<div style="font-size: 0.85em; color: #E67E22;">Flat Rate</div>
<div style="font-size: 1.4em; font-weight: bold;">$ ${ annual_cost_flat. toFixed (0 )} /year</div>
<div style="font-size: 0.8em; margin-top: 5px;">($ ${ daily_cost_flat. toFixed (2 )} /day)</div>
</div>
<div style="padding: 15px; background: rgba(22, 160, 133, 0.3); border-radius: 6px;">
<div style="font-size: 0.85em; color: #16A085;">Off-Peak + DR</div>
<div style="font-size: 1.4em; font-weight: bold;">$ ${ annual_cost_offpeak. toFixed (0 )} /year</div>
<div style="font-size: 0.8em; margin-top: 5px;">($ ${ daily_cost_offpeak. toFixed (2 )} /day)</div>
</div>
</div>
<div style="margin-top: 20px; padding: 15px; background: rgba(22, 160, 133, 0.2); border-radius: 6px;">
<strong style="color: #16A085;">Smart Charging Savings:</strong><br/>
vs Peak: <strong>$ ${ savings_vs_peak. toFixed (0 )} /year</strong> ( ${ ((savings_vs_peak / annual_cost_peak) * 100 ). toFixed (1 )} % reduction)<br/>
vs Flat: <strong>$ ${ savings_vs_flat. toFixed (0 )} /year</strong> ( ${ ((savings_vs_flat / annual_cost_flat) * 100 ). toFixed (1 )} % reduction)
</div>
</div>`
Back to the chapter