What is the maximum length of venting I can have on my cooker hood?

Ideally no more than 3 meters.