restrict_date function

Remove or flag groups failed to meet conditions based on dates