Dynamic thresholds for time

I’m using Grafana 7.5
I have a board that shows date and I want to make it yellow if the date is 2d ago and red if the date is 7d ago.
how to make this visualization? Thanks in advance