Equation for discharge of lead-acid battery