Charge and discharge ratio of lead-acid and lithium batteries