The supply and demand of IPO shares are used to calculate the GMP. The GMP of the IPO is influenced by a number of variables, including market and economic conditions, investor sentiment, the company's growth prospects, and its valuation.