As per Qatar Labor Law, if you are hired locally, two years is enough but if you were hired overseas, you need to stay with the company for minimum of 5 years..