Continuing the discussion from Welcome to Teable Community!
:
There are two formulae to calculate the number of days between two dates:
- WORKDAY_DIFF
- DATETIME_DIFF
The first one is not ignoring weekend days
For 1. if the formula is WORKDAY_DIFF({Start Date},{End Date}) and you choose March 9th 2026 as the start date, then choose March 13th 2026 as the end date and not specify any “Holidays” then the value is 4, it should be 5.
If you do the same but this time the end date is March 20th 2026, then the value is 11, not 10.
If you do the same but this time the end date is March 27th 2026, then the value is 18, not 15.
If I now create a new dates column called Holidays and then reference that as the third variable. When saving the formula, it is accepted but is not considered as part of the calculation.
I also tried a single line text and enter it as the same format as the dates in the start date and end date columns and makes no difference.
For 2. At it calculates correctly (With the “day” qualifier)but the wrong way around. If you enter the variables as Start, then End, you get a negative number, but End first followed by Start then it is a positive number. I assume that it is intended this way around as a positive number.