A laptop is both a productivity tool and a portability device, so wear is driven by battery cycles, heat, and physical handling. Consumer Reports reporting cited by a major news outlet notes owners expected laptops to last about five years; using 5 years keeps the model conservative given how fast software requirements and battery wear can push replacement.
Repairs under the threshold are often worthwhile early in life for a battery replacement, keyboard service, or storage upgrade, especially if performance remains strong. Replacement becomes more attractive when the laptop has motherboard/logic-board issues, severe overheating, or multiple failures stacking together-particularly after mid-life.
Also consider support and compatibility: if the device can't run current apps smoothly, a repair may not restore practical usefulness. The new-price benchmark uses Apple's entry MacBook Air price; many mid-market Windows laptops are similarly priced after typical discounts, but high-end configurations can cost more.