Add solution to 'Calculate distance'