Calculation of self-discharge rate of lead-acid battery