how to calculate national income example