When these issues arise always go to the vet.. If you can't afford the outrageous prices then "tech up" ..

learn all you can to save you time and money and more importantly learn how to asses and administer all you can do other than a rabies shot and surgery.
The apple cider trick will work, so will being able to pee more.. Dogs are made to pee and run all day; not two potty trips a day when a dog pees up to 10min in one setting. This or cheap dog food and or both are generally the cause of such symptoms. If you have a pup or a young dog they need can only hold their bowels only as long as many months they are old up to 6-8 months they can be crated that amount of hrs or expected to be okay in the house if house dog. No dog should be expected to hold its self longer than 6-8 hrs even as a full grown adult. Animals have the right to be animals

They are not human, do not have thumbs, do not read signs and regulations, know not why their owner is gone all day and for some more (for work/school) our busy lil lives revolve around capital and a dog doesn't; it revolves around life.
Change the pups diet,
Use a tablespoon of apple cider (if you cannot afford a vet visit)
Spend more time outside with your pup or letting your pup out in back yard ...
those immediate three steps and youll see a drastic change, medically always go the vet first, so I guess find you a good honest vet that doenst hijack your dividends and is genuine; if not.. gonna have to learn how to do these type things yourself.
eradicate the problem for your dog, and thus yourself...
Good Luck.. Best of Wishes~