After starting AAS I got severe cramps after a hard training session, at night the muscles I trained would go frenzy and I had to manually stretch them out while in agonizing pain (in the middle of the night). I started magnesium bisglycinate and it worked wonders.
I also work a physically demanding and stressful job, 7 days a week, 10-12h per day. So electrolytes are being burned easily.
I take 1g magnesium bisglycinate with each meal, 4 meals per day. That's 800mg elemental magnesium and I don't have issues with cramping ever again. I salt my meals too but haven't tried supplementing potassium, although I track it and eat potatoes for carbs for many of the meals of the week to keep my daily potassium at around 4-8g per day.