If an appliance uses a quick disconnect device, a shut off valve must be located within how many feet of the appliance?

If an appliance uses a quick disconnect device, a shut off valve must be located within how many feet of the appliance?