Modification of bat function to compute time before end of battery