Maximum charging time of lead-acid battery