Calculate distance, instant and average speed
