The wash-sale rule

Buying a substantially identical investment within the window disallows the loss for now.