[ad_1]
Hello @pexel
Thank you very much for using our plugin.
If the feldname1 is a date field, and the number fields fieldname19 has a year value, fieldname20 months, fieldname21 weeks, and fieldname22 days, and you want to sum them to the date field and get the result in date format. You can insert a calculated field in the form and enter the following equation:
(function(){
var result = fieldname1;
result = DATETIMESUM(result, 'dd/mm/yyyy', fieldname19, 'y');
result = DATETIMESUM(result, 'dd/mm/yyyy', fieldname20, 'm');
result = DATETIMESUM(result, 'dd/mm/yyyy', fieldname21*7+fieldname22, 'd');
return GETDATETIMESTRING(result, 'dd/mm/yyyy');
})()Best regards.
