Please follow https://www.bea.gov/sites/default/files/methodologies/nipa-handbook-all-chapters.pdf#page=315.