Getting velocity from the position vs time graph