There is no bright line test. If she plans on being out for an extended period of time she should apply for a reentry permit. This will allow her to stay out longer than 6 months without abandoning her residence. I generally tell peope they should stay inside the US for at least as long as they were outside the US. In your example if out for 5 then in for 5.