How do I calculate my cost basis for a used vehicle that I traded in

Hello, I traded in a vehicle I used from business. I began using it in 2017 owned it since 2017 and I traded it in 2018. Paid 11,000 for it and got 6,500. Do I just subtract the purchase price from trade in minus depreciation?