Your dates don't seem to be detected as dates when loaded, they are loaded as strings, based on the left alignment of the field in the chart. So subtraction is not an option for text strings. You need to apply date# function to the date in the load script.