How to do a balanced analysis of a battery pack