Twenty-two years...

Unless you mean absolute isolation without any human contact. I think I've done that for a few days before, just sitting around my apartment with no reason to open the door.