This web-based Travel Cost Calculator allows you to estimate the costs and emissions of a trip based on several inputs: distance, fuel consumption, fuel price, additional costs, and fuel type.
- Calculate Fuel Consumption: Estimates fuel used based on distance and consumption rate.
- Estimate Fuel Costs: Calculates total fuel costs based on consumption and fuel price.
- Total Trip Costs: Includes additional user-defined costs to get the total trip cost.
- CO2 Emissions: Provides CO2 emissions based on fuel consumption and type.
- Export Results: Allows users to export results to an Excel file.
- Reset Inputs: Clears all inputs for a new calculation.
- Frontend: HTML, CSS, JavaScript
- Backend (optional): Python (for a separate Python-based version)
- Enter the required information in the input fields.
- Click Calculate to view the results.
- Optionally, you can export the results to an Excel file.
- Reset the fields using the Reset button to enter new data.
- Download or clone this repository.
- Open
index.htmlin your browser to run the application.
This web-based version is based on a Python implementation. You can check out the Python version here: Python Trip Cost Calculator.
This project is licensed under the MIT License.