This rule disallows a deduction for losses on a stock, if you purchase the same stock within 30 days before or after a sale. Any losses suspended by this rule are added to the tax basis of the replacement stock.