Search "Mike Miller maintenance".
The engine should be able to get there. It's a proven platform. The tranny/electronics are more questionable. You will have to replace some components along the way (cooling system).
Maintaining a BMW out of warranty can be expensive. But as long as you are willing to keep it up you should be good.