need a refresher course. a good rule of thumb is to take dog outside first thing in the morning to go to the bathroom, then again within an hour after a meal. puppies and young dogs need to go 10 min after finishing a meal. then they need will need a toilet break midday and again in the early evening and another before bed.
if your dog has an accident inside, do not punish the dog! a dog cannot learn a lesson after the fact, they do not understand why you are upset. some people think that the dog understands the punishment because they look “ashamed” when you are yelling at 