Skip to content

kchuang7/carbon-calculator

Repository files navigation

Personal Carbon Calculator

Intro

The goal of this calculator is to provide a rough but useful carbon footprint calculation based on simple lifestyle data points. Inputs are in consumption units instead of equivalent dollars due to high variability in utility/raw material costs. Utility statements commonly have consumption numbers and payment due figures in tandem. Output will always be kg CO2e/yr.

In addition, the calculator will demonstrate the relative decrease in CO2 emissions when implementing various different measures. We will assume a zip code of 94114 for certain EFs used. Some carbon-generating categories are omitted in the interest of time.

Build and Run

npm i

npm run build

npm run node:dev

Design Process

  1. Intake requirements and parameters, such as scope, time and resource constraints, tech stack, etc.
  2. Exercise user empathy. What data would a typical American individual have easy access to, and how can we transform that data into useful insights? What insights would users care about?
  3. Define web app's goals, features, and wireframe to accomplish the aforementioned point.
  4. Research and organize necessary values for carbon emission calculations.
  5. Build :^)

Housing

Electricity

  • CAMX CO2 Factor: 496.5 lb CO2e/MWh
  • Input: kWh/mo
  • Output: E = N (kWh/mo) * 0.001 (MWh/kWh) * 12 (mo/yr) * EF (lb CO2e/MWh) * 1/2.205 (kg/lb)
  • Offsets:
    • LED lighting instead of incandescent: 20% household electricity is lighting. LEDs use 1/30 the energy as incandescents. This is equivalent to E * (121/150)

Natural Gas

  • EF: 6.6 kg CO2e/therm
  • Input: therm/mo
  • Output: N (therm/mo) * 12 (mo/yr) * EF (kg CO2e/therm)

Fuel Oil

  • EF: 11.6 kg CO2e/US gallon
  • Input: US gallon/mo
  • Output: N (US gallon/mo) * 12 (mo/yr) * EF (kg CO2e/US gallon)

Liquid Petroleum Gas (Propane)

  • EF: 6.8 kg CO2e/US gallon
  • Input: US gallon/mo
  • Output: N (US gallon/mo) * 12 (mo/yr) * EF (kg CO2e/US gallon)

Waste (MSW)

  • 692 lb CO2e/yr per resident
  • Input: number of residents
  • Output: N (number of residents) * EF (lb CO2e/yr per resident) * 1/2.205 (kg/lb)
  • Offsets:
    • Composting: 69.5% of waste can be composted. Composted waste has 10.294% the emissions compared to landfilled waste. This brings emissions down to 211.06 + 49.5 = 260.56 CO2e/yr per resident

Water

  • EF: 5875 kWh/MG then use CAMX CO2 factor
  • Input: US gallon/mo
  • Output: N (US gallon/mo) * 1/1000000 (MG/US gallon) * EF (kWh/MG) * E (electricity emissions function)

Travel

  • Output: N (miles/yr) * EF (kg CO2e/mile)

Vehicle

  • EF for passenger car: 0.335 kg CO2e/mile
  • Input: vehicle-miles/yr

Bus

  • EF: 0.053 kg CO2e/mile
  • Input: passenger-miles/yr

Metro

  • EF for transit rail: 0.099 kg CO2e/mile
  • Input: passenger-miles/yr

Taxi

  • EF for passenger car: 0.335 kg CO2e/mile
  • Input: passenger-miles/yr

Rail

  • EF for commuter rail: 0.148 kg CO2e/mile
  • Input: passenger-miles/yr

Flying

  • EF average for various flight lengths: 0.174 kg CO2e/mile
  • Input: passenger-miles/yr

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published