User Guide | 2019.2
Calculated date/time field example
Calculated date/time fields can generate date/time values or add time to date/time input values to generate new values, such as due dates.
The following example shows the configuration for a calculated field that generates a test run due date by adding two weeks to the assignment date.
The following formula returns the due date. The function's first input value specifies the assignment date and the second value specifies the number of weeks to add.
DateTime.addWeeks(Item.Events.last("Assign").fieldValue("Date"), 2)