Start Date + Business Days.. Can't figure it out

I’ve read through as many forum posts as I can… haven’t found a solution.

The ask is simple enough…

Start Date + Business Days = Due Date.

Business days is in my database as a field for a project.

The solutions I’ve seen are to calculate the business days in a range.

I just need to figure out what the date in the future is when I add business days. This will all be done on the back end based on “Current Date and Time”

Any ideas how to pull this off?

Thanks!

If you can use Javascript then this is the code we use to determine 3 business days ahead of a specific date so you could just make the 3 dynamic.
function findDate(dateObj){
var count = 0
while(count < 3){ //make this 3 dynamic
var endDate = new Date(dateObj.setDate(dateObj.getDate() + 1));
if(endDate.getDay() != 0 && endDate.getDay() != 6){
count++;
}
}
return endDate
}

2 Likes