Code to get the distance in feet