What it does

Eco-Calc calculates carbon emissions and total water usage for people and businesses and puts in in perspective. To make these calculations, the website asks questions such as "How many showers do you take per week, and how many minutes per shower?". After pressing submit, each user receives a personalized message which puts their water usage/carbon emissions in comparison to a familiar object (such as a swimming pool) and the average.

How we built it

We used HTML, CSS, and JavaScript.

Challenges we ran into

We had trouble returning the correct value after using the calculator. This was fixed due to a mechanism that tells us what line an error is on, and we found several.

Accomplishments that we're proud of

We are most proud of the accurate functionality of the calculators. Hopefully, this website will cause people to become more eco-friendly. They can do this by simple things as eating less meat, not running the water when washing hands or brushing teeth, and thinking twice before shopping. We also made sure to make the website mobile-friendly so that it may appeal to a wider demographic.

What we learned

We learned a lot about how much water we really use on a day-to-day basis. One of us entered their personal water usage data when testing the code to make sure it calculates correctly (it does), and their annual water consumption is about 440,000 gallons! We also learned how to make a better website and create links that will re-direct to another part of our page.


Eco-Calc was inspired by carbon emission calculators that we saw at previous hack-a-thons.

What's next for Eco-Calc

If we were to expand on Eco-Calc, we would make personalized recommendations to the users after they complete the quizzes and learn about how much water they use. We would also add more sources with statistics about water usage. Sage Hill Coders is based in Southern California, a location with perpetual drought, so it would be very useful if even just a few people made big decreases in water usage because of seeing Eco-Calc.

Share this project: