Investment swings: What’s the tax impact?