I know that capital gains attract taxes while capital losses can be used to set off. But how are capital gains calculated.
If I have shares A and B, and I sell share A at long term capital gain 50 and sell share B at long term capital loss 100. Will my long term capital loss be be 50-100=-50? Or would they be treated individually so that ltcg is 50 and ltcl is -100.
Is each transaction considered seperate or are they considered together?