Investors & landlords

Sorry @DianeW777 but I'm confused about this statement, "the wash sale rules end when the stock is finally completely disposed of without a repurchase in the 60 window (30 days before and 30 days after the sale)." Specifically, I'm confused about the "30 days before" part.

 

In my last example with 100 consecutive trades in stock XYZ that ended with 50 profitable trades and 50 losing trades, I understood that once I closed out stock XYZ (my 100th trade) on December 16, 2021, my cost basis would be adjusted in a way so I am getting the benefit of the 50 losing trades in 2021. In other words, I can write off all 50 losing trades against the 50 profitable trades. This of course is assuming I didn't buy stock XYZ after December 16, 2021. I guess my confusion lies in the fact that if you look at all of those trades, there are repurchases "30 days" before that 100th trade of stock XYZ. With that 100th trade on December 16, 2021, there are 99 trades that happened prior to it in a 30 day window. Does this not matter?