+ my $days_until_upload = $upload_date->delta_days(DateTime->now);
+
+ my $note = '';
+ if ( $days_until_upload->days == 0 ) {
+ $note = 'Upload this file before 11:00 AM today'.
+ ' (' . $upload_date->strftime($date_format) . '). ';
+ } elsif ( $days_until_upload->days == 1 ) {
+ $note = 'Upload this file before 11:00 AM tomorrow'.
+ ' (' . $upload_date->strftime($date_format) . '). ';
+ } else {
+ $note = 'Upload this file before 11:00 AM on '.
+ $upload_date->strftime($date_format) . '. ';
+ }
+ $note .= 'Payments will be processed on '.
+ $process_date->strftime($date_format) . '.';