Help to create a custom schedule function that auto-closes requests.

Help to create a custom schedule function that auto-closes requests.

So I'm trying to make a custom schedule function that auto-closes requests that have the status "Awaiting Requestor Response" and have not received a response in 5 days. But I don't know how to find proper documentation to set it up.

I have a report that shows all the requests that are labeled "Awaiting Requestor Response" in a table view and I'm using that as the argument.



And I'm using the function attached to run as the executor but when I try to run the schedule, nothing happens? Am I missing something? 

I turned these request closing rules off but it didn't change anything either:



Any help would be greatly appreciated. Thank you.