@VaidasG
I input the below code on the App-> OnStart property
ClearCollect(publicHoliday, DateValue("06/06/2022"),DateValue("7/8/2022"),DateValue("7/11/2022"), DateValue("8/31/2022"),DateValue("9/16/2022"),DateValue("10/24/2022"),DateValue("12/26/2022"));
ClearCollect(counter, Blank()); //Collection to count if any day in the range falls to weekend or public holiday.
ClearCollect(tempHoliday, ForAll(Sequence(Value(DataCardValue15.Text)), {date: DateAdd(DataCardValue2.SelectedDate-1, Value, Days)})); // Generate collection of dates in requested range
ForAll(tempHoliday As item, // Check if days are weeked or public holiday, if so adds day into extra counter
If(Or(Weekday(item.date) = 1, Weekday(item.date) = 7, item.date in publicHoliday), Collect(counter, item)));
Then I input, this into the EndDate input value but it still counts the weekends
DateAdd(DataCardValue2.SelectedDate, Value(DataCardValue15.Text)+CountRows(counter),Days)
It still counts the weekends and holidays.
I used the above formula (your second post) on the Resume Work Date and it doesn't count the weekends. then I put it on the EndDate as well but the weekends are still counted.