Hi @mmchx :
Iterating over each date in the time range is the most accurate algorithm, I suggest you use this formula:
Sum(
ForAll(
Sequence(DateDiff(StartDate.SelectedDate,EndDate.SelectedDate,Days)+1,0,1),
{Value:If(Weekday(DateAdd(StartDate.SelectedDate,Value,Days))<>1,1,0)}
),
Value
)


If the previous formula is used, if the start date is Sunday, the count may deviate by 1 day
Best Regards,
Bof