That's what I'm talking about. When you're closing a short sale, use the settlement date for losses but the trade date for gains.