When to take a pregnancy test?

Ha

I know you’re more likely to get an accurate reading when you’re already late for your period, or the day before you’re supposed to start, but is that true for all tests? I have the clear blue digital ones, but I don’t want to get my hopes up since I’m still 6 days out before AF is supposed to show up. Is testing 5 days before your period even a good idea? When did you test and get an accurate result if it was a BFP?