calcultate battery capacity and current