added MAX_DAYS_HENCE