How to measure battery storage capacity