Good on the magnesium. If it isn’t helping I’d suggest adding in potassium. The banana you ate was a good idea - did it help? My Mom used to get spasms in her calves. Adding in potassium and doing calf stretches (stand on tip toes, release, repeat) helped.