Every comment I read, the first advice to guys is not to leave. How long did you live together after you formally decided to separate before one of you moved out?

Can anyone advise how long you can be out of the house and not have it count as leaving. I have a camper, could I go camping for 2 weeks, back for 1, then out again?