Divide the amount by the ratio, rounding up the remainder.