Let's say you want to AUTOMATICALLY delete all "Promotional" emails from your Gmail after 90 days.
Go to Settings -> Filters -> Create a new filter
Type the following into "Has the words" field:
Click "Create filter with this search"
Select "Delete it" and finally click "Create filter" button...
And... we're done!
The key here is older_than:90d, you can just as easily create whatever time-based filter you want with that.