I was recently asked how to calculate business days within a Nintex Form.
Here is a video on how I achieved a result, but this is just a quick example and still requires thorough testing to see if it meets your business requirements.
Here is the function:
ifElse ( /* IF MORE THAN 1 WEEK DIFFERENCE */ dateDiff("TotalWeeks",eForm].FStart date],dForm].FEnd date]) != 0, /* SUBTRACT 2 DAYS PER WEEK FOR WEEKENDS */ (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1) - (2 * dateDiff("TotalWeeks",eForm].FStart date],dForm].FEnd date])), ifElse ( /* SUBTRACT 2 DAYS */ (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1 >= 7) || (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1 >= 6 && formatDate(tForm].FStart date],"dddd") == "Tuesday") || (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1 >= 5 && formatDate(tForm].FStart date],"dddd") == "Wednesday") || (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1 >= 4 && formatDate(tForm].FStart date],"dddd") == "Thursday") || (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1 >= 3 && formatDate(tForm].FStart date],"dddd") == "Friday") || (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1 >= 2 && formatDate(tForm].FStart date],"dddd") == "Saturday"), (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1) - 2, ifElse ( /* SUBTRACT 1 DAY */ (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1 == 6 && formatDate(tForm].FStart date],"dddd") == "Monday") || (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1 == 5 && formatDate(tForm].FStart date],"dddd") == "Tuesday") || (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1 == 4 && formatDate(tForm].FStart date],"dddd") == "Wednesday") || (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1 == 3 && formatDate(tForm].FStart date],"dddd") == "Thursday") || (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1 == 2 && formatDate(tForm].FStart date],"dddd") == "Friday") || (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1 == 1 && formatDate(tForm].FStart date],"dddd") == "Saturday") || (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1 == 2 && formatDate(tForm].FStart date],"dddd") == "Sunday") || (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1 == 1 && formatDate(tForm].FStart date],"dddd") == "Sunday"), (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1) - 1, (dateDiff("TotalDays",DForm].FStart date],dForm].FEnd date]) + 1) ) ) )
Cheers,
Euan