Hello Anusha,
first of all you should generate transform rule to determine if the date is before o after today’s date, once you have correctly define this attribute you will need to create a role to define the assignment criteria, which should be based on that identity attribute.
you can check the transform documentacion here: Transforms | SailPoint Developer Community And for the roles: Managing Roles - SailPoint Identity Services
Regards,
Pablo