Usually acute diarrhea
is self-limited, which means that it would end after 2-3 days.
You should hydrating yourself during this course. There are many different agents that could cause diarrhea (bacterial vs viral vs protozoal causes vs medications). Antimotility medications can prolong the course and could be dangerous. Suggest not to use so loosely due to this reason.