How to calculate power by battery capacity