There is some wiggle room, provided that your pooch has access to enough food and water, as well as a place to go potty if they need to.
However, even if their basic needs are met, you shouldn't leave your pet alone and unsupervised for more than 8 hours a day.