The calculation of a country's GDP encompasses all personal and public consumption, authorities outlays, investments, additions to non-public inventories, paid-in development costs, and the overseas balance of trade. (Exports are delivered to the cost and imports are subtracted).
If, for example, Country B produced in one year 5 bananas each worth $1 and 5 backrubs each really worth $6, then the GDP would be $35. If in the next yr the charge of bananas jumps to $2 and the portions produced stay the same, then the GDP of Country B would be $40.
Only items and services produced domestically are blanketed inside the GDP. Only newly produced goods - including those that enlarge inventories - are counted in GDP. Sales of used items and sales from inventories of goods that have been produced in previous years are excluded
Learn more about gross domestic product here: