Definition and Calculation of Work