When is best time to take a test?

I work night shifts. 9pm-7am. When would be the best time for taking a pregnancy test in this case. I know usually first thing when you wake up because everything is more accurate but my sleep schedule is so messed up it’s hard to figure out when. I usually go to bed about an hour or two after I get home and sleep for at least five hours before getting up to go to work again that night.