Get your taxes done using TurboTax

Consider you bought another 12 shares five days after selling.

Now you have a disallowed loss on 22 shares.

The loss on 12 more shares is assigned to the shares you bought on the 5th day.