*Traffic Index* is a composite index of time consumed in traffic due to job commute, estimation of time
consumption dissatisfaction, CO_{2} consumption estimation in traffic and overall inefficiencies in the traffic system.

*Time Index* - is an average one way time needed to transport, in minutes.

*Time Exp. Index* - is an estimation of dissatisfaction due to long commute times. It assumes that the dissatisfaction
of commute times increases exponentially with each minute after one way commute time is longer than 25 minutes.

*Inefficiency Index* - is an estimation of inefficiencies in the traffic, with high inefficiencies it assumes driving,
long commute times, etc. It is meant to be more measurements of economies of scale in traffic.

*CO _{2} Emission Index* - is an estimation of CO

Actual formulas to calculate indices is a subject to change and at this moment, quite complex empirical formulas are used. Those formulas as written in the Java programming language are as follows:

protected void calculateIndex() { index = new TrafficIndex(); index.time = overall.getTimeOverall(); double tooMuchTime = 0.0; if (index.time > 25.0) { tooMuchTime = index.time - 25; } index.timeExp = index.time + Math.pow(tooMuchTime, Math.E); double co2 = 0.0; co2 += overall.time_bus * 20.0; // bus produces 20g of CO2 per minute (for each passenger) co2 += overall.time_driving * 133.0; // car produces 133g of CO2 per minute (assumes only driver) co2 += overall.time_train * 10.0; // train produces 10g of CO2 per minute (for each passenger) co2 += overall.time_tram * 15.0; // tram produces 15g of CO2 per minute (for each passenger) co2 += overall.time_other * 10.0; // other produces 10g of CO2 per minute co2 += overall.time_motorbike * 80.0; // motorbike produces 80g of CO2 per hour index.co2 = 2 * co2; index.main = index.time + Math.sqrt(index.timeExp) + Math.sqrt(index.co2) + Math.sqrt(index.inefficiency); }

To estimate number of trees to cover CO_{2} consumption, we assume 240 days of commuting during the year and we are using cite
"On average, one tree produces nearly 260 pounds of oxygen each year. Two mature trees can provide enough oxygen for a family of four." - Environment Canada, Canada's national environmental agency

Since 260 pounds is 117934 grams, an carbon has an atomic wt of 12, oxygen in diatomic form(O_{2}) of 32 and CO_{2} of 44, we use formula:

double co2CommuteConsumptionYearly = 240 * index.co2; double treesNeededForCommute = (co2CommuteConsumptionYearly * 44 / 32) / 117934;