Working with timestamp and threshold

I’m trying to add a colored threshold in a single stat.
Data in my database are formatted in this way:

and the panel settings are:

I’ve tried all combinations of possible thresholds but I can’t get threshold based on minutes. what can I do to ensure that:

< 5 minutes Green 5-10 Orange >10 Red