Question: how to calculate time of battery?
Answer: In the ideal/theoretical case, the time would be Time(H) = Capacity(Ah)/Current(A). If the capacity is given in amp-hours and current in amps, time will be in hours (charging or discharging). Feel Confused? Let's see an actual case, 10 Ah battery delivering 1A, would last 10 hours.