How to calculate the battery pack balance tolerance