With yellow diarrhea I'd suspect worms.
Also some vets will do a fecal test for worms for a small fee. False negatives are possible. They also can test for coccidiosis.
Dosage for 9.6% Corid liquid is 9.5 ml per gallon of water for 5-7 days. Mix new solution daily. They also sell a powder...