Safe Bed Capacity
P = beds − maintenance
S = 1:1 + (nurses − 1:1) × ratio
E = beds with ready equipment
Cop = min(P, S, E)
A = Cop − occupied − accepted
F = Cop − occupied + discharges − accepted − possible
DEMO