For 5 business days ahead you can set up an offset based on the
current day (starting at Sunday):
- var
plus5Business = [5, 7, 7, 7, 7, 7, 6]; // Offsets by day
- var
today = new Date();
- var
startDate = new Date();
- startDate.setDate(startDate.getDate()
+ plus5Business[today.getDay()]);
BTW, you would have had a problem anyway at the end of the month. For
example, if today is Feb 27, your start date would be 02/
32
/2015!