calculate the distance