What are the relevant vinaya guidelines if a bhikkhu was to find a likely abandoned dwelling?
It's not a matter of how long, since you can't know for certain anyway. If you perceive it to be abandon, then you can go ahead and use it as deem fit.