Implemented air quality calculations