Calculation of GDP and related variables