The real formula: miles ÷ efficiency, plus charging losses, times your rate. Worked through with measured state electricity prices, from 12.35¢ to 52¢ per kWh.