You can't only hydrate that day while working. Hydration has to take place all day everyday.
You also could be low on potassium. Eat some Banana's.
Ever seen a monkey with leg cramps? Eat bananas.
Pickle juice
That's true, but it is really hard to diagnose something on the internet.