Calculate time difference between two locations