Relationship between distance, time, and speed