Thanks again for the education.
With DateAdd the argument 3 must numeric.
So in addition to a constant number a numeric field is OK and so is a lookup where the ID is numeric.
If that is to be conditional it is getting trickier.
If the argument 3 is going to be different than the value of the referenced field it has to be a lookup field.
That has to be constructed so that the ID is equals to the value required while the display value is what is really wanted.
Eg. say the calculated date is target date depending on the value of the class attribute for the instance.
If the class is New Install then the target date should be 50 days more than the created date.
If the class is Update then the target date should be 20 days more.
That works if the class is using a lookup field where value New Install had ID 50 and Update has ID 20.
If not eg it is not a lookup then that would not work and a more complex expressions is required.
Is that possible?
Is it possible to use if or case statements.