I have a simple problem, but I have already tried to solve it in several ways and did not get the expected result. I need to calculate the number of business days between two dates, but without considering the first day.
Example: initial_date: 15/08/2024 (Thursday) final_date: 20/08/2024 (Tuesday)
In Excel, if I calculate calendar days =DAYS(dt_initial;dt_final), I obtain a total of 5 days. In other words, it counts Saturday and Sunday, but that's not what I need. If I try to disregard the weekend =DIAWORKALHOTAL.INTL(dt_initial;dt_final;1), I get the result 4. That is, it includes the 15th in the account.
What I would like is to find a way to count from the next day, that is, in the example above, the result would be = 3 (days 16, 19 and 20).
If anyone knows a way to solve it, whether in Excel, PowerBI or even with Python, could you please let me know?
As I mentioned, in Excel I have already tried using =DIAWORKALHOTAL.INTL(dt_initial;dt_final;1), but it returns a count considering the starting date (the first day).
In PowerBI, I tried the example below, but got the same problem:
work_days = NETWORKDAYS(table[initial_date],table[final_date], 1)



=DIAWORKALHOTAL.INTL(dt_initial + 1;dt_final;1),=DIAWORKALHOTAL.INTL(dt_initial + 1;dt_final;1)before replying the comment?=DIAWORKALHOTAL.INTL(date(2024, 8, 19)+ 1;date(2024, 8, 20);1)will return 1, not zero.=DIAWORKALHOTAL.INTLdoesn't calculate "duration", it just returns the number of days that satisfy a certain condition (a business day). so=DIAWORKALHOTAL.INTL(date(2024, 8, 20);date(2024, 8, 20);1)will return 1. but I agree, if start date > end date, DIAWORKALHOTAL.INTL won't work.