Repair cost versus the system
If the repair is more than about half the price of a new system of the same size, we say so. A $3,800 compressor on a 16-year-old heat pump is not a favor. A $240 capacitor on a 6-year-old system is.
Demo prices, not a bid on your house.