A slow laptop is annoying. Replacing a usable one is expensive.
When a laptop starts struggling, it is hard to tell whether the whole machine is finished or just needs some attention. A tired battery, too many startup apps, and limited free space can all make an ordinary workday frustrating. Buying a replacement is a big decision when the current computer still handles most tasks. What checks help you decide between repair and replacement? Specific details would help: what the problem looked like, what a repair shop checked, and whether the quoted repair made sense for the age of the machine.