Add business days
FreeLogic@rabbinatix/add-business-days by Rabbinatixupdated Oct 4, 2026
Moves a date forward by working days, skipping weekends.
A While loop steps one day at a time with Add Time and only counts Monday to Friday. Public holidays aren't known here: add them as a list check if you need them.
Shows: While, Add Time, Date Parts, To Date, Format Date, Variables.
How to use it
Add it to your logic, then add a Call Function step in any logic and pick Add business days. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.
Inputs
start: Text
days: Whole number
Outputs
date: Text
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 3 outputs. step 1 of 17
Add business days
start
days
To Date, Date and time. 1 input, 3 outputs. step 2 of 17
To Date
value
date
timestamp
valid
Set Variable, Data. 2 inputs, 2 outputs. step 3 of 17
Set day
value
value
Set Variable, Data. 2 inputs, 2 outputs. step 4 of 17
Set left
value
value
Get Variable, Data. 0 inputs, 1 output. step 8 of 17
Get day
value
Get Variable, Data. 0 inputs, 1 output. step 5 of 17
Get left
value
Greater Than, Operators. 2 inputs, 1 output. step 6 of 17
>
A
B
result
While, Flow control. 2 inputs, 3 outputs. step 7 of 17
While
condition
Loop Body
iteration
Completed
Add Time, Date and time. 3 inputs, 1 output. step 9 of 17
Add Time
date
amount
unit
result
Set Variable, Data. 2 inputs, 2 outputs. step 10 of 17
Set day
value
value
Date Parts, Date and time. 1 input, 8 outputs. step 11 of 17
Date Parts
date
year
month
day
hour
minute
second
millisecond
weekday
Less or Equal, Operators. 2 inputs, 1 output. step 12 of 17
<=
A
B
result
Branch, Flow control. 2 inputs, 2 outputs. step 13 of 17
Branch
condition
True
False
Subtract, Operators. 2 inputs, 1 output. step 14 of 17
-
A
B
result
Set Variable, Data. 2 inputs, 2 outputs. step 15 of 17
Set left
value
value
Format Date, Date and time. 2 inputs, 1 output. step 16 of 17
Format Date
date
pattern
result
Return, Input / output. 2 inputs, 0 outputs. step 17 of 17
Return
date
Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.
Examplesrun live against the logic · 3/3 pass
| Passed | Example | Input | Output |
|---|---|---|---|
| Friday + 1 | {"start":"2026-10-02","days":1} | {"date":"2026-10-05"} | |
| Monday + 5 | {"start":"2026-10-05","days":5} | {"date":"2026-10-12"} | |
| Zero days | {"start":"2026-10-03","days":0} | {"date":"2026-10-03"} |
Try it
Versions
In this package
Add business days (entry)
