Calculate distance between results and search param