You know, as a former physicist, when I used to practice as one, I would tell people that this was really arithmetic, not physics. We can look at the energy storage capacity of the batteries that are being planned and proposed for the world or Canada or the United States and compare it with the amount of electricity consumed in any given year or any given hour. What you'll find is that even these incredible increases that are being proposed will store minutes' worth, not hours' or days' worth, of electric supply. There's actually no possibility, given current plans, to operate electric grids on episodic power using batteries.
The only feasible means will be to do what Germany did and effectively build two grids, which costs more than twice as much. One grid is wind and solar with some batteries. The shadow grid is about 80% of the original hydrocarbon grid, which is there to provide electricity when the sun and wind obviously don't. It's an extraordinarily expensive solution. It can be done, but it doesn't eliminate carbon dioxide emissions. It just increases mining around the world.