Pregnancy test

How soon can I take a pregnancy test ? I’ve been feeling a little off lately but my period isn’t until 10 days