This medication is best taken 30 to 45 minutes before a meal. However, if you have stomach upset, you may take this medication with or after a meal or snack. Taking this medication late in the day may cause trouble sleeping (insomnia). Take this medication regularly to get the most benefit from it.