Postgresql Cannot Cast Type Interval To Numeric