The Boeing Co. reported Wednesday that it recorded about $2 billion in losses during the third quarter related to the two crashes of its 737 MAX planes, but the number doesn’t include massive legal costs, settlements and penalties that loom in its future.

With $20 billion in revenue, the company still showed a profit, though it was 20% lower than the same quarter in 2018.