Calculating average velocity or speed

Calculating average velocity or speed