energy output calculations