Distance is the sum of the length of the path traveled by an object from one place to another. The path may or may not be directly from the initial point to the final point. It is a scalar quantity that only has a magnitude, and does not have any direction.
Speed = Distance / Time
Distance= Speed x Time
D = S x T
Displacement is the length of the shortest path from the initial point to the final point. It is a vector quantity that has magnitude as well as direction.
Velocity= Displacement / Time Therefore,
Displacement = Velocity x Time.
D = V x T