MONTH_DIFFERENCE

Calculates the month difference between the two dates as an integer constant

Two attributes of the Date type or date constants or calculations producing a date

IF MONTH_DIFFERENCE (Account.OpeningDate, Account.ClosingDate) = 5 THEN ...