10days before my period...

When can i take a test?do i have to wait til i missed my period?or can i test earlier?