How do you calculate the age and count the first range in your queries?