Calculating Total Displacement and Average Velocity