Senekot help!

How long does it take to leave system?

I took one Sunday night and had bowel movement yesterday morning and today I’ve had 3 stools and each time they are much softer and for cramps with it