I-Calculator yeNtlawulo yeNkunkuma
Umsebenzi wokusebenza kwexabiso legesi yenqwelo-moya esuka kumgama, ukusetyenziswa kakuhle kwegesi kunye nexabiso legesi.
Iinketho ze projekti
Malunga nale Calculator
A fuel cost calculator estimates what a journey costs in fuel from three numbers: the distance, your vehicle’s fuel efficiency and the price of fuel. In mpg mode it divides the distance by your miles-per-gallon to get gallons used, then multiplies by the price per gallon. In metric mode it multiplies distance ÷ 100 by your litres-per-100km figure to get litres, then multiplies by the price per litre.
For example, a 300-mile trip in a car doing 30 mpg with fuel at 3.50 a gallon uses 300 ÷ 30 = 10 gallons, costing 10 × 3.50 = 35. Split between two people under advanced options, that is 17.50 each.
Use it to budget a road trip, compare the running cost of two vehicles, decide whether to drive or take the train, or work out a fair share for carpoolers. Because real mileage varies with speed, load, traffic and terrain, treat the result as a solid estimate based on the efficiency figure you enter.
Imibuzo ebuza rhoqo
Ixabiso lefuthe lokuqhuba licalwa njani?
Kwindlela ye mpg: umbane osetyenziswayo = umgama / mpg, ngoko ke ixabiso = umbane x ixabiso ngegalione. Kwindlela yemetriki: iilitara = umgama / 100 x (l/100km), ngoko ke ixabiso = iilitara x ixabiso ngelilitra.
Ingaba indlela yokuhamba itshintsha impumelelo?
Ewe. Ukusebenza kakuhle okunyanzelekileyo kuxhomekeke kwisantya, uthungelwano, umthwalo kunye nendawo, ngoko ke sebenzisa le nto njengengxelo esekelwe kwixabiso lokusebenza kakuhle olungenayo.
Ndiyitshintshe njani i-mpg nelitha nganye kwi-100 km?
Sebenzisa iyunithi ezicwangcisiweyo phantsi kweenketho eziphambili. Iimile & mpg ziphatha umgama ngemile kunye nokusebenza kakuhle njengemile nge gal; km & l/ 100km ziphatha umgama ngemile kunye nokusebenza kakuhle njenge litre nge litre, ngexabiso elifundwayo nge litre.
Ndiza kuhlula njani iindleko zepetroli phakathi kwabakhweli?
Misela inani labantu phantsi kokhetho oluphambili. I-calculator ihlula ixabiso lepetroli yokuhamba ngokufanayo, ngoko umhambi ngamnye ubona inxaxheba yakhe - esetyenziswa kwii-carpools kunye neentlanganiso zokuhamba ngeenyawo.
Ingaba ndiya kusebenzisa ifuthe elingakanani?
I-calculator ibonisa igesi esetyenziswayo kunye nexabiso. Kwindlela ye-mpg umgama ÷ mpg (iigaloni); kwindlela ye-metric umgama ÷ 100 × l/100km (iilitara). Uhambo lweekhilomitha ezi-300 nge-30 mpg lusebenzisa iigalioni ezi-10.
Ndiyiqikelela njani ihambo lokuya kunye nokuhamba?
Enter the total distance for both legs, or double a one-way figure. Since cost rises directly with distance, a round trip simply costs twice a one-way trip at the same efficiency and fuel price.
API — sebenzisa le calculator ukusuka kwikhowudi
Nceda le khadi lemali njengendawo esemva ye-JSON ekhululekileyo - akukho qhosha lifunekayo. Thumela amaxabiso endawo ezantsi njengeparameter yombuzo okanye i-JSON. Nantoni na oyenzayo isebenzisa okungagqibekanga okufanayo eli phepha ligqityiwe ngaphambili; iparameter engaziwayo yi 400, ayikho i zero ekhululekileyo. Funda i-API epheleleyo →
Incopho yesiphelo
GET https://calculator.free/api/v1/fuel-cost/
curl
curl "https://calculator.free/api/v1/fuel-cost/?distance=300&efficiency=30&price=3.5"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/fuel-cost/?" + new URLSearchParams({
"distance": "300",
"efficiency": "30",
"price": "3.5"
}));
const data = await r.json();
console.log(data.results);
Results are estimates for general guidance only, not financial, medical or tax advice.