created a age range filter function and adapted all logic to work with date ranges instead of from-age.