Get your taxes done using TurboTax

any purchase including reinvested dividends within 31 days of the sale would be subject to the wash sale rules. not sure why you want to harvest gains and then buy back the shares possibly at a higher price.