Correction to the distance calculator, with the final value added.