Change total energy to average power