Energy cost is one part of the gas-versus-EV decision
For a gasoline vehicle, energy cost depends on distance, litres used per 100 kilometres and fuel price. For an EV, it depends on kWh used per 100 kilometres and what you pay for electricity. The public-charging share matters because fast charging can cost much more per kWh than charging at home.
DriveMath calculates a blended electricity rate from the home and public charging prices you enter. It then compares annual and monthly energy spending at the same driving distance.
What the calculator intentionally does not assume
It does not assume that an EV is automatically cheaper overall. Purchase price, insurance, financing, depreciation, incentives, maintenance, winter efficiency and charging installation costs can outweigh or amplify the energy difference. Use the energy result as one line item inside a full ownership comparison.
Cold weather, high speeds, towing, cabin heating and battery conditioning can increase EV consumption. Gasoline economy also changes with temperature and driving style. If you want a conservative comparison, increase both consumption figures and test several energy-price scenarios.
The gas vehicle would use about 1,530 litres per year. Compare that with an EV using 18 kWh/100 km and your own home/public charging mix.