How to set up a threshold for one value which is dependent on another value in grafana

I have a field for certificate renewal date, i want the values inside the field to be turn red 30 days before the expiration date, different values have different expiration date. How can i dynamically set up a threshold for this.