added formula for energy gauge