When do I know it's time to test?

Madyson
Hello everyone!! My last period was may 17-23. I took a pregnancy test yesterday and it was negative. I haven't normally tracked my period. It has been very irregular lately. 
Did I take my test too early?