The rule of thumb we use at the kitchen table, and when we break it.
Multiply the age of the furnace by the price of the repair. If the answer is over $5,000, a replacement usually makes more sense. A 15-year-old furnace and a $250 part comes to $3,750, so we'd fix it.
We break the rule for safety. A cracked heat exchanger can let carbon monoxide into the air, and we won't patch one, whatever the age.
We also break it the other way. A 20-year-old furnace that was cared for every year may only need an ignitor. We'll say so, even when we could sell you a new one.
Whichever way you go, you get both prices on paper, and you can take a day to decide. We never ask for a decision while the house is cold.