Make the decision based on the complete system
There is no universal repair-cost percentage or equipment age that automatically makes replacement correct. The decision is an economic and technical comparison.
A modest repair on otherwise sound equipment can be sensible. A major repair on aging equipment with repeated failures, obsolete components or unresolved comfort problems deserves a broader replacement evaluation.
Consider the indoor and outdoor equipment, duct system and installation together—especially when a major component has failed.