Which hook to use to watch for accounts nearing their EOT

I need to put together a little script that sends an email to accounts that are within 30 days of their End Of Term.
I'm new to the s2member API but I know enough PHP to write the handling script for the actual email, I just don't know where I should hook into for this.
Is there something like a periodic maintenance hook that I should use for something like this?
I'm new to the s2member API but I know enough PHP to write the handling script for the actual email, I just don't know where I should hook into for this.
Is there something like a periodic maintenance hook that I should use for something like this?