What is in the house, what to use up first, and which store really has the best price per ounce.
Log what you buy with its size and price.
Prices are compared per ounce, per pound, per count and so on, and only between entries that use the same unit. Convert first if one store sells by the pound and another by the ounce.