Selling a vehicle used for business

I have used a vehicle for my business since 2011. Bought a new vehicle and put it into business use beginning of 2023. Sold my other vehicle outright in November.  I am having trouble figuring out how to do this on my taxes.  Mainly the selling of the old vehicle outright.  Not sure how to get the cost basis.