Skip to content

martin18f/fuely

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fuely – Fuel Cost Calculator

A simple web-based fuel cost calculator for estimating travel expenses.
Live: https://fuely.martinsulak.dev


📌 About The Project

Fuely is a lightweight web application designed to quickly calculate fuel costs for a trip.

Users can:

  • Enter trip distance (km)
  • Enter vehicle fuel consumption (L/100 km)
  • Enter fuel price (per liter)
  • Instantly calculate total fuel cost
  • View clear and structured results

The goal of this project is to provide a fast and accurate cost estimation tool for drivers and travelers.


🧮 Calculation Formula

The application uses the following formula:

Total Cost = (Distance / 100 × Consumption) × Fuel Price

Example

  • Distance: 250 km
  • Consumption: 7.5 L / 100 km
  • Fuel Price: 1.65 € / L

(250 / 100 × 7.5) × 1.65 = 30.94 €


🛠️ Built With

  • HTML5
  • CSS3
  • Vanilla JavaScript
  • Vercel (Deployment)

🚀 Getting Started

Clone the repository

git clone https://github.com/your-username/fuely.git
cd fuely

Run locally

Open index.html in your browser

or use a local server:

npx serve

🔮 Future Improvements

  • Multi-currency support (€ / $ / £)
  • Round-trip calculation option
  • Calculation history storage
  • Integration with real-time fuel price APIs
  • Enhanced mobile responsiveness
  • Dark/light theme switcher

📄 License

This project is licensed under the MIT License.


👤 Author

Created as a practical web project for estimating travel fuel expenses.

About

Travel Cost Calculator

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors