There is no a+b=c forumula as there are a lot of parameters involved.
I'm pretty sure every vendor includes the max theory value in the datasheet as a real value depends on the client traffic.... customer#1 uses the WLAN only to connect some barcode scanner that use 50kbit/sec and customer#2 uses the WLAN to transmit 4k vides streams.
It's obvious that customer#2 can connect less clients then customer#1 per AP/radio.
But also other parameters on the infrastructure affect the client number... MBR, # of SSIDs, channel width, CCI, .....
You'd learn more about WLAN design in this training/book...
https://www.cwnp.com/certifications/cwdp