Calculate Change in Internal Energy