As I saw ur profile Ur a profession , u should get up from Ur chair every 30 min just walk few minutes than sit again ,
If it is a cramp only than u should do proper stretching of ur legs hamstring n calf muscles n take plenty fluid, electrolyte
Next Steps
that will help u
no need to worry