The natural taxation of capital gains and losses when incomes is taxed