my ($date2) = bounds( $endrange);
if ( C4::Context->preference( 'LongOverdueNoticeCalendar' ) ) {
my $holidays_by_branch = get_number_of_holidays( $date2, $date1 );
my @holidays_by_branch = get_number_of_holidays( $date2, $date1 );
foreach my $branch ( @holidays_by_branch ) {
-