Hey, I have this code
If(
Weekday(
StartDate.SelectedDate;
StartOfWeek.Monday
) = 6 Or Weekday(
StartDate.SelectedDate;
StartOfWeek.Monday
) = 7 Or Weekday(
EndDate.SelectedDate;
StartOfWeek.Monday
) = 6 Or Weekday(
EndDate.SelectedDate;
StartOfWeek.Monday
) = 7;
"You can't choose weekend";
EndDate.SelectedDate < StartDate.SelectedDate;
"Wrong order of days";
(RoundDown(
DateDiff(
StartDate.SelectedDate;
EndDate.SelectedDate;
Days
) / 7;
0
) * 5 + Mod(
5 + Weekday(EndDate.SelectedDate) - Weekday(StartDate.SelectedDate);
5
) + 1 - If(
LookUp(
Employees;
NameOfEmployee = User().Email
).Title = "NOARKCZ";
CountIf(
Holidays;
DateOfHoliday >= StartDate.SelectedDate;
DateOfHoliday <= EndDate.SelectedDate
);
and im working with this:

basically you choose Vacation between two dates and it will calculate how many days are between the dates. "Holidays" is a Sharepoint list, where I've listed all the holidays. It also excludes weekends. It works perfectly, but over Christmas it doesn't seem to work.
Any idea why?