Calculator
Kpọtụla ruo n'ụhara pakeetị atọ ka ịhụ nke bụ uru kasị mma n'otu.
Nhọrọ ndị ahụ ga-akpụzi mgbe ị na-etipụta.
N'ihe banyere calculator a
A unit price calculator divides each item’s price by its size so you can compare different pack sizes fairly and spot the genuinely cheaper deal — the bigger pack is not always the better value. Enter the price and quantity of two products, or add a third under advanced options, in grams, millilitres, sheets, ounces or whatever unit you like (just keep the unit the same across items). It shows the price per unit for each and highlights the best value.
Worked example: a $3.50 pack of 500 g works out to 3.50 ÷ 500 = $0.0070 per gram, while a $5.00 pack of 750 g is 5.00 ÷ 750 = $0.0067 per gram — so the larger pack is about 5% cheaper per gram and is marked as the best value. A comparison table shows each item’s unit price and how much more the others cost.
Shoppers use it to cut through confusing supermarket pricing, compare a multi-buy against a single, and decide whether a bulk size is really worth it.
Ajụjụ ndị a na-ajụkarị
Olee otú m ga-esi tụnyere ọnụahịa ndị ahụ na nha dị iche iche?
N'ihi na a £3.50 akpa nke 500 g bụ £0.0070 / g mgbe a £5.00 akpa nke 750 g bụ £0.0067 / g, ya mere a nnukwu akpa bụ a bit cheaper na gram.
Enwere m ike ịtụle ngwaahịa atọ n'otu oge?
Ya - mepee n'elu nhọrọ na-adọta na Item C. Ihe ọ bụla ihenhọrọ lefted na a price nke sekọndị bụ na-ewepụtụ, ka toolbar na-ewere na abụọ ma ọ bụ atọ ị na-emeghe na-egosi na-adịchaghị ọnụ per unit.
Ọ bụ na nnukwu pake na-adịkarị ọnụ karịa n'otu?
Ọ bụghị mgbe niile. Bulk sizes na-adịkarị ọnụ ala karịa n'otu unit, mana mmelite, multi-buys na premium large packs nwere ike ịgbanwe nke ahụ. Ikpeazụ ọnụ ahịa yunit bụ ụzọ dị irè iji kwuo.
Ọ bụrụ na ihenhọrọ abụọ ahụ ga-eji kọmpụta ọbụla?
Ee - tinye ụhara abụọ n'ime nhazi ahụ (ọbụla n'ime grams, mọọbụ n'ime sheets, mọọbụ n'ime milliliters). Calculator ahụ na-akpụpụta ọnụahịa site n'ụhara n'ụzọ ziri ezi, yabụ ịgbanwe grams maka otu na ọbụla maka nke ọzọ ga-enye ngbanwe na-enweghị uru. Kpọgharịa n'ime yunit a na-ejikarị eme ihe n'oge mbụ ma ọ bụrụ na pakeesị ahụ ejirila akara dị iche iche.
Olee otú m ga-esi pụta n'ihe?
Tinye ụhara n'ime yunit isi na-agụ ọnụọgụgụ nke yunit, wee megharịa: ọnụọgụgụ gram nke ọnụọgụgụ 100 bụ ọnụọgụgụ nke 100 g, na ọnụọgụgụ millilitere nke ọnụọgụgụ 1000 bụ ọnụọgụgụ nke litir. Shelf labels na-emekarị n'ụzọ a ka ị nwee ike ịtụle ha.
Ọ bụ ọnụ ahịa ntinye ego dị ọnụ ala ka ọ na-ere ahịa kacha mma?
Ọ bụ uru kacha mma kwa unit, ma ọ bụghị mgbe niile smartest ịzụta - a nnukwu ọnụ ala akpa bụ enweghị nkwekọrịta ma ọ bụrụ na nri spoils tupu ị na-eji ya, ma ọ bụ ma ị nwere ike na-echekwa ya. Wepụta ọnụ ahịa unit na-ekpe na ole ị ga-eji n'ezie.
API — jiri kaadị a site na kóòdù
Kpọọ kalkulata a dịka ebe ngwụcha JSON n'efu - enweghị kii achọrọ. Ziga valiu ebe ahụ n'okpuru dịka paramita ajụjụ mọọbụ JSON. Ihe ọbụla ị na-ewepụ na-eji dìfọ́ọ̀ltụ̀ nke a na-edebe ihuakwụkwọ a na ya; parameter a na-amaghị bụ 400, ọ dịghị sẽọ̀rọ̀. Gụọ ngwe ndị ahụ niile →
Ebemkpofuozi
GET https://calculator.free/api/v1/unit-price/
curl
curl "https://calculator.free/api/v1/unit-price/?price_a=3.5&qty_a=500&price_b=5.0&qty_b=750"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/unit-price/?" + new URLSearchParams({
"price_a": "3.5",
"qty_a": "500",
"price_b": "5.0",
"qty_b": "750"
}));
const data = await r.json();
console.log(data.results);
Ihe a na-ahụta bụ n'ihi nlekọta n'ozuzu ya, ọ bụghị nlekọta ego, ọgwụ ma ọ bụ nlekọta ego.