The ratio in which Aman and Bimal have contributed to the capital of a company is 3:4. Bimal has invested his capital for only 3 months and has received half as much profit as Aman, at the end of the year. Find out for how much time has Aman invested his capital in the company.