Use whole-unit rounding for purchasing capacity
A budget may not support a fractional unit.
Floor the quantity
Whole purchasable units fit within the budget.
Reserve fixed fees
Subtract costs that are not included in unit price.
Leave margin
Unexpected charges can reduce final capacity.