Trade-in position
trade_in_positionFrom written trade-in offers and the payoff: the best offer still open (the floor a dealer's trade number is compared with), the equity or negative equity, and, with a state and vehicle price, the sales tax the trade saves where the state credits it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City or county in the state's rate table (23 states; state_rules says which), like Pittsburgh or Allegheny County: sets the combined rate from the state's own rate file. Where a city is in several counties (Chicago, Milwaukee), give county too. A place name only, never an address or ZIP | |
| state | No | Two-letter state code (DC included), like PA | |
| county | No | County from the state's list (Pennsylvania, Nevada, Wisconsin; state_rules lists them), like Allegheny County: sets the combined rate. A county name only, never an address or ZIP | |
| offers | Yes | ||
| payoff | No | What is still owed on the car | |
| doc_fee | No | Doc fee; leave out to assume the state's cap, or a typical $450 where there is none | |
| tax_rate | No | Combined sales tax rate as a decimal, local tax included (0.07 for 7%); leave out to use the state's rate | |
| vehicle_price | No | The new vehicle price, for the tax the trade saves |