I read this earlier (on my phone) and have had a few thoughts since:
Saddle height. If your saddle is too high you’ll in effect be riding on ‘tippy toes’ thus causing your calf to contract.
Shoe fitting. Tight shoes may result in cramps due to circulatory difficulties.
Lack of training/stamina. Self explanatory and already mentioned above.
Lack of hydration/minerals. Already mentioned above.
Final thought…try and match your pace/position/intensity/fuelling in training to what you will do on race day so you experience any difficulties prior to the big day. Also, if changing saddle height, do so by 5mm per week.