Costly car repairs are, unfortunately, inevitable. Even the best break down sometimes, and that goes for our cars, too. The problem is, those breaks usually happen at the most inconvenient times.

Whether you’re in the middle of the highway or between jobs, an unexpected repair is never a good surprise. And when the repair will be a costly one, the situation gets even more complicated. It’s hard to tell whether it’s worth paying for the repair or if you’re better off simply replacing the car.

There are a lot of factors to consider when you’re faced with an expensive car repair, and the decision can be extremely stressful. Luckily, the folks at CJ Pony Parts crunched the numbers and took the guesswork out of deciding when it’s time to replace your car and when a repair will do. Just follow their easy flow chart and see which road is best for you – and your dinged up car – to go down.