Charge and discharge times of solar cell