Calculating the number days in the timestamp filter

Hi,

I’m new to looker.

I want to calculate the number of days in the timestamp filter.

For example:

If I have filtered the timestamp:
“in the last month” - Output should be - 30 days.

“in the last 7 days” - Output should be - 7 days.

I would really appreciate your help.

Thank you.