Hello,
I am working on a vacation request app, where when a person chooses the start date and time, end date and time, it should return the total hours of vacation requested, assuming a 8-hour workday.
I also would like to exclude the weekends and company holidays in between the selected days .
For example, if I select vacation from 9/1/2023 7:00 AM (Friday) to 9/17/2023 3:00 PM (Sunday), then it should return 80 hours.
Basically it should calculate 8 hours each day for Sep 1, 5,6,7,8,11,12,13,14,15 and exclude Sep 4 (Company holiday) and weekends ( Sep 9,10,16,17).
Also the minutes dropdown has only 4 values (00,15,30,45) to restrict users to have only vacations in 15 min interval. So in the hours requested, the output should be like 3.50 (for 3 hours 30 minutes) or 4.25 (for 4 hours 15 minutes) or 6.75 (for 6 hours 45 minutes) or 2 hours (for 2 hours and 00 minutes)
