I am trying to create a calculated column the sets the status of a contract depending on the Contract End Date field.
It is a single line text field
I can enter one condition: If Contract End Date does not contain data then Set Contract Status to "no contract end date set"
But when I add an Else If condition I get the ContractStatus field has an invalid XAML formula definition.
What am I doing wrong?

I want to get to the following condition:
If Contract End Date does not contain data then Set Contract Status to "no contract end date set"
Else If Contract End Date <= Today then "Contract expired"
Else If Contract End Date > Today && <= Today + 9 months then "Contract expires within 9 next months"
Else "Contract Active"
I have created calculated columns in the same contracts table for the value of Today, Today() and Today + 9 months, DateAdd(Today(),9, TimeUnit.Months)