It's hard to tell how long it will last, cause it depends on what caused it. Also, dogs are like people...some get sicker than others. I've had dogs with stomach problems that lasted a day or 2, all the way up to a dog that got seriously ill, but it was a genetic problem. But it sounds like a bug, caught from the dog you're taking care of.