Best time to take a pregnancy test?

So I don’t know when to take a test . I have the copper IUD and I usually have cramps a weeks before my period and a then on my period and I haven’t had those. I did the dead the 20/21 . When can I take a test?

In the morning on the first day of your missed period