How to calculate battery capacity by power