My Dad's best friend's got loose in his house once (a friend's kid took him out and didn't put him back right - not me!). He found him three and a half months later wrapped around his dog's middle (large dog, neither animal was harmed).

After a trip to the vet it was determined that he was still completely healthy and fine... So I'm guessing it would take quite a long while...