If you look up the budget numbers for how these pharma companies operate, very little money goes into R&D as a fraction of revenue. The supposedly high cost of bringing a drug to market is a talking point used to justify high prices, not something that is necessarily based in reality. They are absolutely not barely breaking even.