The standard says 100 meters of cable, which should get you a good long ways in a residential setting. If you throw a switch anywhere in the middle, you reset your limit.

How much you can stretch it, I'm not sure about.

Matthew