How is the valuation of a company is determined during an IPO and how the value of its share is decided?

you can check the Varsity IPO Chapters from the below link, in which it is clearly explained with examples

Suppose in the near future Flipkart decides to have an IPO? How will its valuation will be calculated and how will it get decided that the value of its share will be Rs.300 or Rs.400 or …?