Predict your period

I’ve noticed overtime every time I masturbate and it causes pain it means my period is around the corner, however if it’s during or after my period there is no pain. Let me know if any of you have experienced this or find it helpful! I sure do except when the pain begins ):