Out-the-door estimate
out_the_doorItemizes an out-the-door estimate for a vehicle price: rebates, doc fee, add-ons, the state's sales tax (with its rules on rebates and caps), title and registration. Optionally adds a trade-in (and the tax it saves where the state credits it), a down payment and a loan for the payment. Compares the doc fee with the state's cap and the total with a walk line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apr | No | Loan APR in percent, for the payment | |
| 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 | |
| down | No | Cash down payment | |
| price | Yes | Vehicle selling price before rebates, fees and tax | |
| state | Yes | 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 | |
| add_ons | No | ||
| doc_fee | No | Doc fee; leave out to assume the state's cap, or a typical $450 where there is none | |
| rebates | No | Maker rebates taken off at signing | |
| city_mpg | No | Washington DC only: the vehicle's EPA city MPG, with its weight | |
| electric | No | Washington DC only: a battery-electric vehicle (its own, lower column) | |
| tax_rate | No | Combined sales tax rate as a decimal; leave out to use the state's rate | |
| condition | No | New or used: a state's tax can apply to new cars only (Oregon) | new |
| title_reg | No | Title and registration; leave out for a typical $250 | |
| walk_line | No | The walk line, out the door | |
| other_fees | No | Any other fees | |
| term_months | No | Loan term in months, for the payment | |
| trade_offer | No | Best written trade-in offer | |
| trade_payoff | No | What is still owed on the trade-in | |
| buyer_in_chicago | No | Illinois only: the buyer's address is in the City of Chicago (the city and county given are the dealer's) | |
| vehicle_weight_lbs | No | Washington DC only: the vehicle's unladen weight in pounds (DC's excise rate goes by weight and city MPG) | |
| buyer_in_cook_county | No | Illinois only: the buyer's address is in Cook County |