Skip to content

micsno/tripcalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Travel Cost Calculator

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.

Features:

  • 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.

Technologies:

  • Frontend: HTML, CSS, JavaScript
  • Backend (optional): Python (for a separate Python-based version)

How to Use:

  1. Enter the required information in the input fields.
  2. Click Calculate to view the results.
  3. Optionally, you can export the results to an Excel file.
  4. Reset the fields using the Reset button to enter new data.

Installation:

  1. Download or clone this repository.
  2. Open index.html in your browser to run the application.

Reference:

This web-based version is based on a Python implementation. You can check out the Python version here: Python Trip Cost Calculator.


License:

This project is licensed under the MIT License.

About

Travel Cost Calculator is a web-based tool to estimate trip costs and CO2 emissions based on user inputs like distance, fuel consumption, fuel price, and additional costs. It also calculates total costs and allows users to export results to an Excel file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors