calculate distance of travel for when_at