Great analysis. I will note that however much money MS lost or made on the deal, the value of maintaining a customer platform (for Office) and keeping a competitor alive (at a time when the antitrust thing loomed) was probably priceless.
Maybe at the time Microsoft saw Apple as a dying company that would never recover from their early to mid-90s blunders, so throwing it a bone would have seemed like a no brainer at the time.