"GDP is calculated by adding consumption plus government expenditures plus investments plus exports minus imports. Consumption is personal consumption that includes durable goods (durable goods are goods that are expected to last more than three years), non-durable goods (such as food and clothing) and services. Government expenditures include things like defense and road construction. Investment spending includes plants and equipment, residential homes and business inventory. Finally, subtract imports from exports to get the net exports."
Right, but that is added in as part of GDP. Government deficit borrowing is not subtracted from the total.