Calculate energy content

Calculate energy content