 called 'My Field' in web
const field = await sp.web.fields.addCalculated(&quot;My Field&quot;, { Formula: &quot;=Modified+1&quot;, DateFormat: DateTimeFieldFormatType.DateOnly, FieldTypeKind: FieldTypes.Calculated, Group: &quot;MyGroup&quot; });
// create a new calculated field called 'My Field' in the list 'My List'
const field2 = await sp.web.lists.getByTitle(&quot;My List&quot;).fields.addCalculated(&quot;My Field&quot;, { Formula: &quot;=Modified+1&quot;, DateFormat:  DateTimeFieldFormatType.DateOnly, 