Calculate the due date based on custom field values
Call the following script from a workflow transition post function. The script sets the due date based on the value of custom field 10703.
if(isNotNull(customfield_10703)) {
interval i = (string)customfield_10703 + "d";
dueDate = currentDate() + i;
};