Calculate The Internal Energy