Wash trade capital gains question
When does wash trade rule apply?
June 1 bought xyz $400 1 share
June 5 sold xyz $300 1 share
July 15 bought xyz $200 1 share
August 20 sold xyz $100 1 share
August 22 bought back xyz $75 share
Because I bought back on August 22 that I sold on August 20th, I cannot claim the capital loss. But does this affect the loss I suffered on June 5th, or will the wash trade apply only to that one trade on August 20th?
June 1 bought xyz $400 1 share
June 5 sold xyz $300 1 share
July 15 bought xyz $200 1 share
August 20 sold xyz $100 1 share
August 22 bought back xyz $75 share
Because I bought back on August 22 that I sold on August 20th, I cannot claim the capital loss. But does this affect the loss I suffered on June 5th, or will the wash trade apply only to that one trade on August 20th?