I agree that you should only leave a mature dog alone for the day as they can "hold it" better.
Having said that, in my experience it is really important that you give them a long walk before you leave so they are tired, pooped out LOL and their bladders are empty. It sometimes means getting up earlier but both you and the dog will benefit from it in the long run.