If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

In most solutions they construct a permanent time/date table to handle such problems (Like holidays,working days,day of week,weeknumber,...) with dates from the past to the far future.
Finding the x-day of type z could be done by ranking futures on the date/time dimension.

Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.