From the dateEnd field in your form, remove validation pattern and make the field protected/readOnly instead of calculated. I have modified the script as per your date fields format: var dtStart = util.scand("yy-mm-dd", this.rawValue);var dtEnd = new Date(dtStart.getFullYear(), dtStart.getMonth(), d...