what's formula of distance and displacement