Hi @kharina ,
I made a test with a Calendar of US holidays:

The formula of the Label:
RoundDown(DateDiff(DatePicker1.SelectedDate, DatePicker2.SelectedDate, Days) / 7, 0) * 5 +Mod(5 + Weekday(DatePicker2.SelectedDate+1) - Weekday(DatePicker1.SelectedDate), 5)-CountIf(BrowseGallery1.AllItems, DateValue(start) >= DatePicker1.SelectedDate, DateValue(start) <= DatePicker2.SelectedDate)
You could see those holidays in my test that each day occupies one row, which your collection need to be the same as. If you have collected all holidays you need, same format as your above post, your formula would be:
RoundDown(DateDiff(DatePicker1.SelectedDate, DatePicker2.SelectedDate, Days) / 7, 0) * 5 +Mod(5 + Weekday(DatePicker2.SelectedDate+1) - Weekday(DatePicker1.SelectedDate), 5)-CountIf(Holidays, StartDate >= DatePicker1.SelectedDate, StartDate <= DatePicker2.SelectedDate)
If you would like to make a test for Christmas day and New Year Eve, try below collection:
ClearCollect(Holidays,
{HolidayName: "Christmas Eve", StartDate: DateValue("12/24/2020")},
{HolidayName: "Christmas", StartDate: DateValue("12/25/2020")},
{HolidayName: "DayAfterChristmas", StartDate: DateValue("12/26/2020")},
{HolidayName: "New Year's Day", StartDate: DateValue("1/1/2021")}
)
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.