Calculation of solar battery charging time