Only during the transfer of assets, the capital gain tax arises and is calculated according to the profit made.