Calcium rich foods include dairy and dairy products etc., and foods rich in potassium are whole grains, potatoes, celery, tomatoes, etc. Also, during the spasm or cramp, you can consume chamomile tea, as it will help to soothe and relax the irritated muscles.