Even in the very long term, loss of equipment to enemy fire is non-negligible during active combat, so you need to tack on the purchase cost in some manner.
In the shorter term you have to buy a 30 million dollar laser system, even if you’ll eventually make it back.