Sales App - Follow-up Dates Filter

Hi Team Glide,

I have created an app for sales. I have follow-up date column in spreadsheet.

I want to filter follow-up dates as following

Last 7 Days
Upcoming 7 days
Last 30 Days
Upcoming 30 Days
Custom Range

You have to do this using a nested IF function in the Google Sheets document.