Lots of variables to give a specific answer.
How big is the solar panel on the light.
Where is the light to be situated.
How much sunshine will you get.
The list goes on.
I have tried several over the years, all coming to the same conclusion. They are good(ish) in summer, but of little use as it doesn't get dark till 22:00 ish, so they are not needed for long.
In winter, it's dark around 16:00 and by 16:30 (Sadly, not joking.) most have gone out as the battery did not have long enough to charge or enough sunhine.
Often, you will find that the solar panel will fail, letting in water, or the fitting itself will let in water, or condensation fills the fitting or a combination of previous problems.
Another thing, is you can't turn them on or off when you want, so the stored energy is wasted.
In my opinion, self-contained solar lights are a complete waste of money. On the other hand, you could D.I.Y. using big solar panels, and battery storage etc, but it will be cost prohibitive. Mains operated lights are more flexible, you can even control them from a phone app.
I would suggest you look at https://amzn.to/3ZA0zn3 as you "string them up" and just plug them in.