I am trying to add x number of business days to a date now() and have tried several methods without any success.
Business days meaning Monday to Friday
node-red-contrib-calc-next-work-days 0.0.6 looked promising, but it is counting every day including the weekends after many attempts and testing on two versions of nodered
It can exclude predefined 'holiday' days correctly.
I could do the method of adding all weekend days into the holiday fields and manage it that way, but it seems overly inefficient and a messy work around.
How would you add x number of weekdays/business days to a date in an efficient way that needs no future maintenance?
Thanks - That still seems to count the weekend though.
If i modify it to be date.setDate(date.getDate()+10); to add 10 business days it returns 29 June. where it should be 01 July if it was to not count saturday and sunday.