I do not know anything about diagnosing cars, but if that car has averaged 15,000 miles a year, Kelley Blue Book estimates it is worth $850 in good condition with 240,000 miles. If it only has 140,000 miles, the value surges to $1,150.
I am a therapist and I certainly could not afford to replace either of my teenage cars. I am facing an expensive repair on my Accord, but the car still runs fine.
I doubt I will rebuild the engine on my Civic or would do extensive repairs on my Accord if she became unreliable.
Go go gadget Google!
If it has averaged 24,140 km a year, it would have 386,243 km, and at least in the U.S. market, it would be worth $1,036 CanYouDigIts. $1,280 CAD with 225,308 km.
Also, I would recommend asking somewhere bigger like
https://www.reddit.com/r/Cartalk/ and forums for the Hyundai, although we have an abundance of experts here, it just helps to investigate multiple sources.