Stupid question

When is the best time of the day to take a pregnancy test when you get up several times a night to go to the bathroom