Investing in quibitech

Is it halaal to invest in a company that doubles your investment , time taken to double investment depends on how well the company is doing.