Investors must wait at least 30 calendar days to repurchase a security in their portfolio to avoid a wash sale loss.