GDP = C + I + G + (EX - IM)
where
C = private consumption
I = private investment
G = government expenditure
EX = exports of goods and services
IM = imports of goods and services
Right. But government borrowing is not subtracted from that—which is what you were suggesting.