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.