Business & farm

What you are missing is the rule is not just within 30 days after the sale.

A wash sale occurs when a taxpayer sells or trades stock or securities at a loss and within 30 days before or after the sale:

Buys substantially identical stock or securities,

Acquires substantially identical stock or securities in a fully taxable trade,

Acquires a contract or option to buy substantially identical stock or securities

*A reminder that posts in a forum such as this do not constitute tax advice.
Also keep in mind the date of replies, as tax law changes.