I will have a system that will have a days term Ex: 30 days.
I need to calculate a date given a certain deadline, which if it is weekend it is interpreted as the last business day on time.
Example:
Today: 09-12-2014, Deadline: 11 days
It should fall on 20-12-2014 (Saturday), but the system must identify and reduce the deadline to 10 days and inform the end date for the 19- 12-2014 .