How to send email/notification when light is on too long

Hi guys, I’m new to node red. Sometime my PIR sensors would fail and the lights would be on for hours. I am trying to see if there is a way (node) start a count up timer when a light turn on. After x minutes being on it would send me an email that the light has been on for the x amount of time. I’m thinking this would be a way to alert me that’s a light is on. Let me know if there are any better way to accomplish this.

Below is my office light flow. Thanks.

[{"id":"ab07b5ca.13b538","type":"server-state-changed","z":"ffbd7f06.4a014","name":"","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"light.office","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":272,"y":784,"wires":[["40d86947.46bd78"],[]]},{"id":"40d86947.46bd78","type":"ha-wait-until","z":"ffbd7f06.4a014","name":"","outputs":2,"entityId":"light.office","entityIdFilterType":"exact","property":"state","comparator":"is","value":"off","valueType":"str","timeout":"60","timeoutType":"num","timeoutUnits":"minutes","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":476,"y":784,"wires":[[],["218145ea.690a8a"]]},{"id":"218145ea.690a8a","type":"debug","z":"ffbd7f06.4a014","name":"Light has been on londer than an hour","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":710,"y":784,"wires":[]}]

Thank you for the idea. I was able to come up with my own solution based on your suggestion.