Distance and time related problems