Formula For Calculating Mechanical Energy