Computing the Distances