How the payment is worked out
The amount financed is the price, minus the down payment and the trade-in, plus anything still owed on the trade-in. If you choose to finance them, the sales tax and fees are added too.
The payment is the standard fixed-rate formula: the amount financed times the monthly rate (APR divided by 12), divided by one minus (1 + monthly rate) raised to the power of minus the number of months. Lenders round to the cent and adjust the last payment, so their figure can differ by a few cents.
Buying from a private seller
Many banks and credit unions lend on private-party sales. They usually pay the seller directly, or the seller's lender when the vehicle still has a loan on it, and are recorded as lienholder on the buyer's new title.
Expect the lender to ask for a bill of sale showing the VIN, price, date and both parties' names, and for the odometer reading. Agree the price with the seller first, then bring the lender's paperwork to the handover.
Lowering the total cost
A shorter term raises the payment but cuts the total interest, often by more than people expect: compare 48 and 72 months in the calculator. A larger down payment lowers both, and paying the tax and fees in cash keeps you from paying interest on them.