- compute total energy for all types of energy and duration