I-Calculator
Thola intengo yokuthengwa kanye nokuthi ugcine kanjani kusuka kunoma yisiphi isiphequluli sephesenti.
Iziphetho zivuselelwa uma ubhala.
Malunga nale khadi
discount calculator applies a percentage off an original price to give you the final sale price and the amount you save. The saving is the price multiplied by the discount percent and divided by 100; the sale price is what remains after subtracting it. Add a second discount or a tax rate under advanced options to see the true checkout price. If you add a second 10% coupon, it comes off the already-reduced 60 — not the original — giving 60 × 0.90 = 54. That's why stacked discounts
Imibuzo ebuzwa kaningi
Ngiyibala kanjani inkokhelo yephesenti?
Ukuphindaphinda intengo ngephesenti lokuhweba bese uhlukanisa nge 100 ukuthola ukulondolozwa, bese ukhipha. 25% off 80 yinzuzo ye 20, ngakho intengo ekugcineni yi 60.
Usebenza kanjani umkhawulo oqinile?
Intengo ephansi yesithathu isebenza kuntengo ephansi, hhayi eyamelwe. 25% off bese 10% off 80 inikeza 80 → 60 → 54, hhayi 52.
Ngiyibala kanjani intengo ephelile ngemuva kokukhulisa?
Ukuphindaphinda intengo yokuqala nge (1 − ikhuphoni ÷ 100). U-25% 80: 80 × 0.75 = 60. Imali oyilondolozayo yi-original encane le nombolo — lapha 20.
Ingabe i-50% yokulahleka bese i-20% yokulahleka ifana ne-70% yokulahleka?
Akukho. The 20% ivela off intengo sele kuncishiwe ngu 50%, ngakho 100 → 50 → 40, esebenzayo 60% off - hhayi 70%. Stacked amaphesenti angeke nje ukuhlanganisa ndawonye.
Ngiyithola kanjani intengo yokuqala kusuka kuntengo yokuthengwa?
Yabelana intengo yokuthengwa nge (1 − ikhuphoni ÷ 100). Uma into i-60 ngemuva kwe-25% yokukhishwa, okuqale kwakungu-60 ÷ 0.75 = 80. Lokhu kubuyisela ikhuphoni elilodwa.
Ngizofaka kanjani i-tax yokuhweba kuntengo ephansi?
Umsebenzi ukuqala ngentengo yokuthengwa, bese uphinda nge (1 + izimali ÷ 100). Indawo yezimali ngaphansi kwezinketho ezithuthukisiwe yenza lokhu ngokuzenzakalela, ngakho-ke isithombe esiphelile yisona esikhokhelwa ngokusemthethweni ngesikhathi sokuphuma.
API — sebenzisa le calculator kusuka kukhodi
Nquma le kalkuli njengendawo ephelezelwa i-JSON - akukho isitshixo esidingekayo. Thumela amaxabiso endawo ngezansi njengepharamitha yombuzo noma i-JSON. Funda i-API egcwele →
Ingxenye yendawo
GET https://calculator.free/api/v1/discount/
curl
curl "https://calculator.free/api/v1/discount/?price=80&percent=25"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/discount/?" + new URLSearchParams({
"price": "80",
"percent": "25"
}));
const data = await r.json();
console.log(data.results);
Izibalo ziyisilinganiso esisetshenziswa ukuqondisa kuphela, hhayi ukucebisa ngezimali, ukwelashwa noma ukukhokha.