Bathroom ventilation

I have a ventilation unit in my bathroom. When I turn off the bathroom light, it activates and runs for 15 minutes before turning off. However, I don’t want it to activate every time. For example, is it possible to write a command like “if the light stays on for more than 5 minutes, activate the ventilation and stop it after 15 minutes”?

this model can be used. as a condition the light is on for 5 minutes then turn on the fans wait 15 minutes and turn off the fan

Hello. I’m using TX Ultimate as my bathroom switch, and it doesn’t have a “stay on for a while” command.