Abstract: A function you can use to calculate business days. Includes provisions for after hours calculations. There are quite a number of examples already on the web for calculating business days on Oracle. However, none of these did exactly what I needed for a job I was doing. What's different about my environment is the need to consider multiple geographic regions and to consider work hours and that different regions might have different work hours. Here are the deciding factors for how this function decides what to with timestamp after hours (both weekends and during the week) If the start date is after the end of the work day, and before midnight, it is advanced to the beginning of next work day. If the start date is before the beginning of the day (and therefore after midnight), it is advanced to the beginning of the current work day. If the start date is on a Saturday, it is advanced to the beginning of work day on the following Monday. If the start date is on a...
Mentations of an Oracle Developer