Late and spotty period

When would be the best time to take a pregnancy test?