For this next example, add two date inputs, a value input, and two value outputs in the IO tab.

By using the Script Helper, choose the first output and select the dateAdd button.

Replace date with the assigned date input, replace number with the number input, and counter with "'day'".

Use similar steps for the dateDeduct button.

Your Script Helper should look like this:

Once you click Done, your codes should look like this:

'use strict'; return { a: moment(inputs.date_add).add(inputs.b, 'day').calendar(), b: moment(inputs.date_deduct).subtract(inputs.b, 'day').calendar(), };

Your output should display this:

Did this answer your question?