My drug valuation desk said a Phase 2 cancer drug was worth $1.29 billion. After two small fixes, the same drug with the same sales forecast was worth $283.5 million.
Neither bug crashed anything. The screen looked great the whole time. That is the kind of bug this post is about.
The setup
The desk is called Somota. My company Codebat finished the first version in March 2025, under the name PharmFlow. It values a drug with risk-adjusted NPV (rNPV): forecast the cash flows, then weight them by the chance the drug actually reaches the market.
This week my AI coding assistant was tracing where every input on the screen came from. Most inputs had a source. One did not.
Bug 1: a success rate with no source
The probability of success for the cancer asset was 30%. I had typed it in by hand, a long time ago, and nothing on the screen said so.
The best public benchmark I know of is the BIO, Informa Pharma Intelligence and QLS report, Clinical Development Success Rates 2011-2020 (February 2021).…