How to maximize the environmental benefits of EVs

If several factors don't all line up right, trading in a gas-powered clunker for a new EV could actually be worse for the environment.