Wash Sale

Every time I think I understand this rule, I read a post that makes me think I don't. Maybe it's just a confusion in the terminology. So I'll keep it as simple as I can. Say I bought a stock on June 3 and sold it for a $100 loss on June7. Then I buy the stock back again on June14 and sell it for a $100 gain on June 21. I don't trade that stock again for the rest of the year and have no position in it at all. My interpretation is that the the net gain for the year would be $0. Is my interpretation correct?