Energy calculation work