https://www.carboncounter.com/#!/explore
Have some maths based fun with this interactive cost and CO2 counter comparing ICE, hybrid, PHEV and electric from our friends at MIT.
Admittedly these are US numbers for new car costs, but the CO2 numbers are brilliant fun to see over the length of a vehicle lifetime and how long you own it. There's also plenty to tweak from fuel costs, to how polluting the electric mix is...etc.
I compared our ES300h (the second most efficient car I've owned) to a Tesla model 3 (one of the most efficient electrics out there). It will take about 7 years of ownership and driving at 13k miles per year for the lifetime CO2 emission to be equal! Anything less than that the upfront CO2 bill for making the Tesla outweighs the benefits. Compare it to a Toyota Pruis prime and it will take 16 years!
As for costs, that's a bit trickier. I only tweaked fuel and electric price. Ownership costs at US new car prices were the same, again at about the 7 year mark! Mind you Teslas cost a heck of a lot less in the US than they do here and our ES300h cost about the same as it did in the US taking into account the GBP/USD conversion rate at the time I bought it (it's even cheaper now).
Remember I'm comparing to a luxury hybrid car. The civics and the like, wipe the floor with most electrics cost wise over the lifetime of a vehicle.