Battery time conversion formula