The duration is not allowed with a date operation.
20
Cause . . . . . : When adding or subtracting a duration to or from a date, the allowed duration built-in functions are %DAYS, %MONTHS, and %YEARS.
Recovery . . . : Correct the duration built-in function. Compile again.