Leg spasms

Patient: What causes muscle spasms in the legs that start about 2 pm q day and continue for hours? The spasms are regular and occur about q 4 seconds. Can’t keep my legs still and the only thing that helps is to stand on them. Can’t sit down as this makes the spasms worse. Any ideas?

Symptoms: cont mucle spasms from 2 pm on and usually occurs either in one leg or the other. Never in the arms. Feels like someone is squeezing me hard every 4 seconds

Doctor: