So, you go down to the local showroom, kick the tires and try to negotiate the best deal possible for a replacement.
The dealer will agree to a trade-in value for your old auto that reduces the cash you have to shell out for the new one.