workday()

Description:

Find a date which is the nth workday after the specified date.

Syntax:

workday (t,k,h)

Note:

The function finds a date which is the kth workday after the date t. The h is a sequence of holidays and/or workdays, whose members are weekend and/or workdays. The specified weekend will become workdays and vice versa.

Parameter:

t

Date

k

Integer

h

A sequence composed of values of date data type

Return value:

Date

Example:

workday(date("2011-11-07"),25,[date("2011-12-03"),date("2011-12-31")])

2011-12-09

workday(date("2011-11-07"),25,[date("2011-11-30"),date("2011-12-31")])

2011-12-13