Possible fix for TO_DAYS when date is far in the past.