IPO Explained

Say you have an option to take a company public. How would you know when the right time is? Pretend the company is mature and acquiring a small similar company prior.