Battery discharge current and time calculation formula