Allow predefined tiem periods for cards that show historical data

For cards that show historical data, like graph, there is option for user to enter number of days to display.

User must enter value manually and specifically number of days. It would be good to have option to choose predefined periods like today, two days ago, week, month or soo.

Even beder if user could create his own predefined time periods.