Had to take liquid form of magnesium hydroxide for constipation

How long does the diarrhea last? This is rough.