Charging duration for solar lights