The answer partially depends upon how old the battery is and what capacity it has, but even with a new battery, I would not let our Lexus sit for much more than 2 weeks.
Some newer vehicles have extra-large batteries. My Supra say for one month at the dealership while they were waiting for a part. The car started right up, but its battery is very large.