GDP formula
GDP = C + G + I + NX
Where
all private consumption, or consumer spending, in a nation's economy,
the sum of government spending,
the sum of all the country's businesses spending on capital,
the nation's total net exports, calculated as total exports minus total imports
(NX = Exports - Imports).