Younger puppies have a harder time holding their bladders and bowels, so they should not be left in a crate for more than 2-3 hours at a time.
If your dog is very active, they may not be able to stay in a crate for as long as a dog who is less active.
Some dogs are more prone to separation anxiety than others. If your dog has separation anxiety, they may not be able to stay in a crate for very long without getting upset.
The size of the crate is also important. The crate should be big enough for your dog to stand up, turn around, and lie down comfortably.
The environment around the crate is also important. The crate should be placed in a quiet, comfortable area where your dog will not be disturbed.
Even if your dog can technically stay in a crate for a long period of time, it's still a good idea to give them breaks every few hours.
It's important to supervise your dog whenever they are in a crate. This will help to ensure that they are safe and comfortable.