+ while ( $ut->day_of_week == 6 # Saturday
+ or $ut->day_of_week == 7 # Sunday
+ or is_holiday($ut)
+ )
+ {
+ $ut->add(days => 1);
+ }
+ # $ut is now the latest time that the user can upload the file.
+
+ # that time, plus the process delay, is the _earliest_ process date we can
+ # request. if that's on a weekend or holiday, the process date has to be
+ # later.