Advice please !

My period is due October 24th (in a week), when is the soonest I can take a pregnancy test?