On your days at home your dog is manageable. On office days you come back to a dog who cannot settle, barks at the window and grabs the leash. The evening is a party they waited all day for.
You are not imagining the pattern, and it is not your dog punishing you for leaving.
What is different about those days
Three things, and they stack. There is a long stretch with nothing to do in it. There is no one to interrupt anything. And the day ends with the most exciting event available, which is you.
Adolescents feel all of that more than a 5 month old puppy did. The fast way up arrives before the practised way down does, so the evening is where the whole day shows up.
There is also the ordinary version. On your days at home you interrupt things all day without noticing, so nothing gets 9 uninterrupted hours to develop.
Today: change the morning, not the evening
This is the counter-intuitive part. The evening is the symptom. The 20 minutes before you leave is where you have leverage.
Walk before work, and make it a sniffing walk rather than a brisk one. 15 unhurried minutes on a long leash does more for the evening than 30 fast ones.
Feed breakfast out of something they have to work at. A scattered handful in the yard, a rolled towel, a puzzle feeder. 10 minutes of using their nose is worth an hour of pacing.
Leave a chew as you go, not 10 toys. Something they can settle with, in the spot you want them to settle in.
Leave without a speech. A long goodbye makes the moment you go the biggest thing in the day.
Relaxation is trained as a behaviour in its own right, in short repeatable sets. A day that starts with sniffing and chewing has more of that behaviour in it than a day that starts with a rush.
Then rebuild the middle of the day
Break the stretch once if you can. A walker, a neighbour, or you at lunch. One interruption at the 4 hour mark changes the evening noticeably.
Shut the front room. A dog who spends 9 hours barking at the window has practised barking for 9 hours, and that is the dog who greets you.
Leave the same 3 things in the same places every office day. Predictability is doing quiet work here.
And change the first 10 minutes home
Come in, say nothing, put your bag down. Greet your dog when their feet are on the floor, not when they are climbing you.
Go straight out for 10 minutes of sniffing before anything else. Not a training walk. A decompression one.
Then a chew, in their spot, while you make dinner. The evening is much easier if the first 20 minutes of it were quiet on purpose.
Give this a fortnight before you judge it. You are looking for the 8pm version of your dog to change, and that is where you will notice it first.
Safety note
This article is about a bored, under-occupied day. It is not about a dog who is distressed by being left. That looks like howling most of the time you are gone, damage at the door, or messing in the house only on office days. It needs gradual sub-threshold work with a qualified behaviour professional, and a veterinary examination first.
Today's version, in one line: 15 minutes of sniffing before you leave, breakfast out of a puzzle, and a quiet first 10 minutes home.