Some changes to calculate time and distance in single file
Init version of script to calculate distance