I have an expression that I use in ArcGIS Pro to symbolize features based on the amount of days away from their expiration dates.

However, when I try to use this same expression in ArcGIS Online I get a message that says "Error There Was An Error". What's causing the error?