Leandroarb
Board Regular
- Joined
- Oct 7, 2014
- Messages
- 157
Hi,
I need to understand a logic.
I have services that have a lead time that can be from 1 to 30 days.
as of the date that this service was issued, I need to add to its date the days of its execution period. I can not add Saturdays, Sundays and holidays.
I have a table with all the days that I can not add.
I need to get the date of issue, add another day, and look at the table of dates not countable, if it is located in the table, I can not consider that day, so I have to add two more days and look again. This should be repeated, increasing the number of days until the execution time is the date of issue plus the term in working days.
Example:
If the service is issued on 04/13/2018 and the execution time is 7 days, your deadline will be: 04/24/2018 according to the calendar of my city.
All help will be appreciated
I need to understand a logic.
I have services that have a lead time that can be from 1 to 30 days.
as of the date that this service was issued, I need to add to its date the days of its execution period. I can not add Saturdays, Sundays and holidays.
I have a table with all the days that I can not add.
I need to get the date of issue, add another day, and look at the table of dates not countable, if it is located in the table, I can not consider that day, so I have to add two more days and look again. This should be repeated, increasing the number of days until the execution time is the date of issue plus the term in working days.
Example:
If the service is issued on 04/13/2018 and the execution time is 7 days, your deadline will be: 04/24/2018 according to the calendar of my city.
All help will be appreciated