When it is cheap but would cost more to make it habitable than you are paying for it of course. How can you decide this though? Well you could come over to Spain and buy a sprawling ruin in the countryside with its standard 10,000m2 of land and then start doing it up.