How to calculate the ampere-hour of a battery pack