A wash sale is a transaction in which an investor sells or trades a security at a loss and purchases "a substantially similar one" 30 days before or 30 days after the sale.
除非这个loss的能加回到day 1的cost basis里,否则这500的loss就不能claim了。 但是我不知道已经realized gain还能不能调整。