/* $DOC$ $NAME$ ft_AddWkDy() $CATEGORY$ Date/Time $ONELINER$ Return true number of days to add given number of workdays $SYNTAX$ ft_AddWkDy( , ) -> nTrueDays $ARGUMENTS$ = date to start adding from = number of workdays to add $RETURNS$ = Number of actual days to add to in order to add the required $DESCRIPTION$ Let's say you are given the problem: "All invoices are due 10 working days from the date they are printed. Please display the due date on the invoice." When is the due date? Assuming you are printing the invoices today, your answer is: dDueDate := Date() + ft_addWkDay( Date(), 10 ) A work day is defined as Monday through Friday. Unfortunately this routine does _not_ account for holidays. This documentation was written by Glenn Scott so if it's wrong, blame him. $EXAMPLES$ // Postdate 5 working days from the first of January dPost := hb_SToD( "19910101" ) dPost += ft_AddWkDy( dPost, 5 ) // returns 7 true days ? dPost // 1991-01-08 $SEEALSO$ ft_Workdays() $END$ */