Completed distance computation