Doesn't it depend where Mylan's profit comes from? I don't know the numbers, but ideally the fine would more than cover the amount they made from EpiPens.
In your example, if you legally earned $900MM and then robbed a bank for $100MM, would you be fine if the fine was $500MM when caught?