Do unsold goods still make it into the GDP? Assuming Car Motors in Tiny Country has 1m USD and it spends it on workers and suppliers to produce 1m USD worth of cars (cost) for export at 2m USD (1m USD profit).

A tsunami hits and drags all the cars under the ocean rendering them worthless.

Assuming the workers and suppliers spent 500k USD (of the 1m USD from Car Motors) to produce the car and hid the other 500k USD under their pillows.

Will the GDP of Tiny Country be zero? 500k USD? or 1m USD?
2.5 m. Because GDP calculates the final price of Factory goods produced,consumption- which the workers and suppliers spent their cash, and a few other components.