restrict_patrons_with_failed_notices.pl is hardcoded to look back 7 days. It would be great for that interval to be customizable in the system preference.