Lets not look at the maximum we can hope for ever. Lets look instead at figures for what is commercially available now. So, say 27% maximum conversion.
Average insolation gives us ~6kWh over a square meter over a day, 27% of that gets us to 1.62kWh, divide by 24 to get the wattage, that's a 67.5 watts per square meter average before we get to storage or transmission.
HVDC has losses of ~3% per 1000km. Now lets look at round trip efficiency for storage. Typically you see a quoted figure of around 70% depending on technology type. So lets say a 65% loss (edit - this should read 65% efficiency, or alternatively a 35% loss) from storage and transmission.
We are now at ~44 watts per square meter, which gives us 456,000 square km from the 20 terawatt rating of humans. So ~5 Portugals, which is admittedly higher than my original figure of 2 Portugals, though you would presumably site your panels somewhere that gets better than average insolation, places like the Sahara, for example.
Also, for comparison, the Sahara desert is ~100 Portugals and the area currently used by humans for agriculture is ~550 Portugals.