Move last/first trip code

Moving code below the age calculation, so age is part of the first/last
trip data frame.