How long could diarrhea last with magnesium citrate?

Not always diarrhea! If it gives you diarrhea, it should not last longer than twelve hours. If longer, another factor is the cause!