Easy method to delay turn off light when contact sensor is closed

Hi all,
Might there be an easy method using room lighting to delay the turning off of a light switch when a contact sensor is closed?
I have the below off rules set in room lighting app and can see how to delay turn off if no motion but I am not sure how to easily do the same for a contact sensor?
E.g if contact sensor change to closed the turn off light after 3 mins
Thanks

I think you forgot to include your screenshot?

I think what you want is an option right in the means to turn off settings.

image

Exactly the option i was after, thanks (yes i somehow missed the screenshot)
Thanks again