Online I like to play as long as I'm winning. Generally I like full tables but I'll keep playing short handed as long as I'm still doing well. Once I lose more than about 10 to 20% of my stack then I'll consider leaving the table.

Brick and mortar is another story, there are often long waits so once I get on a table I'll likely stay regardless of how I'm doing.