Google calculates the INP metric by collecting interaction data from various users. It considers the slowest 25% of interactions during the page visits, sorts them, and picks the fastest interaction from this subset as the INP for the page.