It's therefore confusing if they're talking about a nation/state or a household.
For a household, assuming you don't want to disconnect from the grid, the calculation is about how to offset as much of your energy costs you can displace with solar, and how to shift cheap energy from overnight with batteries as well as time shift solar generstion. A different and in many ways more interesting question in the abstract while also more practical too.