Due for period

I am due for my period today it didn't come I just had  cramping but it's now gone.. When  should I take a test?