Follow the dosage instructions on the package and take the medication with food or milk to minimize gastrointestinal side effects. For menstrual cramps, it is often recommended to start taking the medication at the onset of symptoms or even a day before the expected start of the period to maximize effectiveness.