Updating distance and duration