finish distance between two cities function