Calculating product carbon footprint automatically