methods to calculate gdp