how to find horizontal displacement - Search