Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+1
person also asked this
people also asked this
Replies
5 replies
Answers
1 answer
Subscribers
8 subscribers
Views
5302 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
How to count working days from a start date
Issam Dabaie
Certified Senior Developer
over 7 years ago
Hello,
I am trying to return a later date depending on an input date, but not counting non-working days.
Example:
Pass in 12/23/2016
15 working days later would return 1/12/2016
Any suggestion would be greatly appreciated.
Thanks!
OriginalPostID-254473
Discussion posts and replies are publicly visible
Top Replies
ammireddys
over 7 years ago
+1
suggested
A Score Level 1
And this "caladddays" function will calculate based on your calendar where you set working days and non-working days for a period
0
rishub
over 7 years ago
Use function "caladddays".
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
+1
ammireddys
A Score Level 1
over 7 years ago
And this "caladddays" function will calculate based on your calendar where you set working days and non-working days for a period
Cancel
Vote Up
+1
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
0
sikhivahans
over 7 years ago
1. Either the Default Process Calendar or a new Process Calendar can be chosen. If a new Process Calendar is created, this should be explicitly mentioned as the second argument to the caladddays() else the function consumes the Default Calendar.
2. Definition of Non-working days to be set up in the Process Calendar(again, either in the Default Process Calendar or new Process Calendar created specific to the module)
3. While exporting to other environments, the same configurations should be made explicitly(creation as well as the setting of non-working days) as there isn't a way to package and export the Process Calendar or its settings.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 7 years ago
@issamd Suggestions made above by other practitioners should work fine as long as the above-mentioned are taken care of.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Issam Dabaie
Certified Senior Developer
over 7 years ago
Thank you all for your suggestions, this worked very well!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel