As a general rule of thumb, a puppy can control their bladder one hour for every month of age until they are about 8 months. For example, if your puppy is 3 months old, they’ll need to use the bathroom at least every 3 hours, and it’s good practice to operate under the assumption that it’s much lower. Once they are 8 months, they’ll be able to hold it for 8 hours, which will be around their max point.

It’s important to know these are just estimates and will change depending on your puppy’s breed and habits. Having your puppy hold their bladder for too long can develop a urinary tract infection or gallbladder stones so it’s better to err on the side of caution. 

Also, taking your puppy out more frequently (at regular intervals - routine is key) will go a long way toward housebreaking them so make sure you have a set schedule for them throughout the day.