I am trying to calculate the difference between two dates in business days and it seems to me, that it would be logical to calculate the difference in full business days. This is how it works with calculating the difference in calendar days, at least.
For example:
date1 = 2023-03-09 15:00:00.0 (Thursday)
date2 = 2023-03-13 10:00:00.0 (Monday)
the expression {{date1.diff(date2).days}} returns "3", as expected. It is how many full days have passed.
however, the expression {{date1.diff(date2).businessDays}} returns "2".
But I am expecting it to return "1", because it would be the amount of full business days between the dates. Considering Saturday and Sunday are not business days.
If someone could clarify the logic behind calculating difference in business days, it would be very helpful.
Thank you in advance!