floor the ratio calcul to make sure it fits