When two objects move in the same direction, their relative speed is the difference between their individual speeds. The time taken for one object to cross another is the distance (usually the length of the object doing the crossing) divided by the relative speed.