A Pi 4B will consume about 6W with 4 cores busy. With some safety margin, power consumption of the converter and without peripherals, you would use 10W or 2A for your calculation.
For the rest, you need to do some calculation. But you will need much more information than we can find in your question.
- In the ideal situation, you will get 12 hours of sun and 12 hours of night. If you always get sun the full time, you would need a battery of 24AH and a panel of 20W
- But if you're a bit more north or south, in the winter you will not get 12 hours of sun. Beyond the Arctic and Antarctic Circles, you will even get days without sun. So, you will need to take that into account too. This will increase the size of your battery (and the need for power from the solar panel)
- Your days may be shorter and they may be cloudy, so you will need some extra capacity from your solar panel to cope with that too. You may get some statistics from people with solar panels on their roof
- If you want to be surer that the Pi stays up, add a factor 2 at the end of your calculations
- Even with the factor two, make sure you have a graceful shut-down when the battery is low, and some circuitry that reboots the Pi when power is sufficient again.
There may be more things required for calculation. For example, batteries perform bad when it's cold.
You will need too many 18650 cells for that to be a viable storage solution for the power. Do yourself a favour and look at lead batteries that are also used in UPS-s.
The zero obviously consumes less power, so you will be able to use smaller batteries and solar panels.
Good luck.
----added----
If you go for a solar powered solution and your solution runs on a zero, that is the way to go.
You can disable cores in the Pi 4 by adding maxcpus=1
in /boot/cmdline.txt
. How much that will save is debatable; I've seen figures of +/- 40mA per core, but you should measure yourself.