That's great that your pup is doing so well at just 6 months.
You may often see a bit of regression around this age for a few months, so just keep that in mind to expect some accidents, and continue with the positive, no punishment training and reinforcement.
how often do you visit the toilet??
:lol: Yes not a bad way to consider it -- quite seriously!! as though a dog CAN hold it for up to 7ish hours (that is with NO activity -- in the same way that you or I could hold it all day at work if we just sat in a chair and didn't drink much water etc, or overnight while sleeping)... but it isn't fair or comfortable for a dog to HAVE to hold themselves for hours and hours just to suit us -- eg to make it less taxing to open a door to let the dog out.
Most dog will really appreciate getting a chance to relieve themselves about 5-6 times a day -- about every 4 hours -- and will immediately take advantage of being let out to d so. An older dog, a younger dog, a dog with health issues may need to go every few hours -- just as with humans, they can't hold it as long as they age.
I only ever leave mine for 7ish hours occasionally, when absolutely unavoidable -- I would not do this every day.
On a separate topic
-- full time workers definitely do have a dilemma that has to resolved if they own dogs, as managing dogs in absentia (for half the dog's daily waking hours) requires doggy daycare, coming home at lunch or getting someone else to come in and give the dog a toilet break and some stimulus. They cannot be left outside (very poor quality of life, susceptible to being stolen or acquiring serious behaviour issues due to boredom), and they should never be crated for a full working day (crating is a short term management technique or a nighttime sleeping option but is cruel as a full day, every day caging in a space smaller than a rabbit hutch). We'd consider this impossibly cruel fior a zoo animal -- it's really sad that some trainers actually advocate caging a lively social animal like a dog in this way for hours on end).