Unless you are a pretty good DIYer, you may want a BMW warranty with that. CPO or otherwise.
I'd use KBB and Edmunds TRADE IN as the value you should target for purchase. Owners are getting MUCH less than that for trade in...
Keep it as simple as possible...but no simpler.