Valuation of a company for IPO

This is how its done, with an example,