This bug has been fixed for Release 14 (R14). For previous releases, please read below for any possible workarounds:
This is a bug in the Financial Toolbox 2.1.3 (R12.1) that has been corrected in the Financial Toolbox 2.3 (R13+.)
This error occurred because the source code for the BUSDATE function looked only at a fixed number of future days in an attempt to determine the next business day. If you passed a HOLIDAYS vector to BUSDATE that contained more consecutive holiday days than BUSDATE searched, or if you asked for the next business day after September 10th, 2001 (after which the stock market was closed for several days), BUSDATE was not able to find a business day in the interval it searched.
As a workaround for versions of the Financial Toolbox prior to version 2.3 (R13+), try changing Line 53 from:
to:
Best Answer