Cost conversion to annual figures
Fuel and charging are converted from your inputs: annual miles divided by efficiency (mpg or miles per kWh) gives gallons or kilowatt-hours consumed, multiplied by the gas or electricity rate for a yearly cost. Purchase price is counted once, maintenance yearly, and any tax credit subtracts from the EV's price. Everything is summed to lifetime and per-year totals.