Yes, you are correct, the trade-in value would be sales price which you would multiply by the business use percentage to get the sale amount to calculate the gain on sale.
**Say "Thanks" by clicking the thumb icon in a post **Mark the post that answers your question by clicking on "Mark as Best Answer"