What people forget in these calculations is that many (not all) countries can produce the electricity for EVs themselves.
Very few countries can produce gasoline and diesel in-house so to speak. The actual raw oil needs to be bought from a dictator somewhere (or Norway), processed by a company that takes their cut and transported all the way to their country + distributed everywhere, every step adds more cost and most of the money doesn't end up in the country buying the gasoline/diesel.
You can make electricity anywhere and it's not that hard to store on a small scale and the people moving the electrons pay taxes to your country, as do the companies employing them. Less money going abroad, more staying in the country is good for everyone except oil companies.
---
I, for one, can afford my EV because I can offset my loan payment from the money I save from not having to spend around 200€/month on gasoline (it's ~2€/litre here). Instead I charge it at home with electricity that has cost 0-10c/kWh for the last few months. I went from 10€/100km to ~1,5-2€/100km in driving costs.
With a bit of code (or a service like Gridio), I can optimise that to only charge the car when the electricity is the cheapest.
And I live in an apartment building.