Generally, puppies can hold it for one hour per every month of age (so a three-month-old puppy can wait three hours to pee).
Here are common time limits for puppies of different ages: 8-10 weeks: 1 hour or less.
Three-month-old puppies can wait for three hours, four-month-old puppies for four hours, and so on.