Tax impact of capital gains and losses in a gyrating stock market