Distance calculation based on multiple locations including starting/ finishing point