As sibling comment said, I think this is bound to cause unintended side-effects. I think it would be simpler to require per-unit pricing alongside overall cost, and regulate that amount. Nothing more frustrating than seeing a per ml or oz cost on one item and a per-count cost on one right next to it.