CALCULATING THE CURRENT SUPPLIED BY A BATTERY