How long does it generally take for a puppy to be potty trained? I'm sure some take longer than others, but is there a general timeframe or age when they pretty much get it?

Thanks.