The number of available slot is basically calculated for each host based on the slot sizes. The - depending on the Admission Control settings and a few other factors - HA calculates the failover capacity. A more detailed explanation of the slot calculation with some examples is covered at vSphere High Availability (HA) Technical Deepdive.
André