You can locate good engines out of wrecking yards for around 600 to 700 dollars. depending on what is wrong with the engine and how important it is to keep it number matching, you may just want to repair the engine. a complete rebuild would be around 2000 to 3000. but you would have a warranty on the engine after the rebuild. a wrecking yard engine gives you about 3 months or 3000 miles. most rebuilt engines offer about a 10000 to 30000 or 1 to 3 years. so it is something to consider. If you are wanting to repair the engine and just sell the car. I would take the route of an engine swap.