What maximum length is allowed for an indirect waste pipe that is not trapped or vented?

What maximum length is allowed for an indirect waste pipe that is not trapped or vented?