I traded a car bought in July '18 for a new car in Nov '20. My purchase price was $26,740.04, business depr. from '18-'20 was $5,295.90, tradein 20k. Can I report Loss?

I'm having trouble determining how I enter my basis for gain/loss based on the information above. Do I put the percentage I used it for business, the dollar amount I sold it for, or the difference between my purchase price and trade-in price? It looks to me like I had a loss of $1444.14.