Remove test on date in formula, because it is already defined in column definition.
Sort functions.
Correct name of variable.
Don't fail when computing age with a period of size > 1.
Move test on date in formula to column declaration.