How is the required distance for overtaking determined?