Each offer is brought back to the price of one unit (pack price ÷ units per pack), then to the price per kilo or litre when the size is known.
When every offer gives its size in the same family (weight or volume) the comparison is per kilo or litre; otherwise per unit.
Carton of 12 × 500 g at €18 (€3.00 per kilo) against a 25 kg sack at €65 (€2.60 per kilo): the sack is 13 % cheaper.
The till, the stock and the purchases work out your margins and prices on their own, product by product. Free account.