Calculate invoice due date

Hey,
Can anyone suggest the formula for the calculate the invoice due date in the stack table?