A cost of a bill is determined by the AMOUNT a buyer buys from a certain seller at a certain PRICE, plus the extra costs (like taxes, fees, ...).
...