Interesting idea, at first blush. But then it raises a few of questions:
- Would we need a list of dates, and if so, manually entered in, or collected from some local holiday api?
- No, it’s a countdown, so if we need to know how many days left, we just need to remove the number of holidays.
- So we entered the number of holidays (say 4) and now it’s countdown down to a certain date… minus 4 days. We can achieve the same thing to setting the date different, so that makes no sense.
Wait what exactly would you like to do? Once it’s set up it would count down to what exactly? Jan 1st… but then we have a holiday/weekend, what should the countdown do? ‘pause’ on these days? Take the example of weekend. On Friday evening, there is 150 days, 8 hours and 0 seconds of business time left. On monday morning at 08:00 there is still 150 days, 8 hours and 0 seconds of business time. Monday morning at 09:00 there is 150 days, 7 hours and 0 seconds left. So now we need to know:
1. business hours
2. a holiday schedule.
3. the target date&time
the countdown now calculates how many total business hours are left, and starts counting down to the target date only during business hours.
Is this what you imagine?