AQI is calculated by a predefined formula on the concentrations of different pollutants and then condensing the result to a single number.