What maximum length is allowed for a flexible connector that is to be installed between an air handler and a duct system?

What maximum length is allowed for a flexible connector that is to be installed between an air handler and a duct system?