Hi there,
I haven't checked out how to do this using FormCalc, but with JavaScript it is do-able.
One way to do it would be having a loop to iterate as many times it needs to end up adding 30 working days. This technically will not consider public holidays, if you want to take it in consideration you will need to add in some more details.
So here's how I'd do it:
if (initDate.rawValue != null){
var arrValues = initDate.rawValue.split("-"),
startDate = new Date(arrValues[0], arrValues[1]-1, arrValues[2]),
arrWeekend = ["0", "6"],
initialDay = arrWeekend.indexOf(startDate.getDay().toString()) == -1 ? 1 : 0;
for (var i = 0, intWorkDays = 0; intWorkDays < 30 || (intWorkDays == 30 && arrWeekend.indexOf(startDate.getDay().toString()) > -1); i=0){
if (arrWeekend.indexOf(startDate.getDay().toString()) == -1){
intWorkDays +=1;
}
startDate.setDate(startDate.getDate() + 1);
}
util.printd("yyyy-mm-dd", startDate);
}
You may want to verify the comments I've written to understand and alter the code to your liking.
I hope this will help, let me know.