What your trade is really worth, how dealers decide, and how to avoid hurting your own deal.