No offense, but it's just division.
I think the answer is simply chess.com isn't using that global number in the calculation. The global number is probably much larger, and used for advertisement, than e.g. the number of active players. That's my guess.
While I don't have access to the calculations the normal formula for calculating percentiles in a distribution curve is given in the link I provided. It isn't something we can calculate with the data members have access to.
I don't think that rank and percentile have any meaning anymore. About a month ago, I noticed that my percentile dropped dramatically. Now I find that if my rating is in the 1500s, my rank is 64K and my percentile is 85. This is true whether my rating is 1500 or 1599. When my rating drops below 1500, my rank is 103K and my percentile is 76. Again, it doesn't make any difference whether my rating is 1400 or 1499.
Before that, the rank and percentile were calculated once a day based on my highest rating for the day. As I remember, the calculation was 1 - rank/active members.