The formula is (number of devices per table) equals (p x f x n)/(s x m)