Calculate battery activity