When’s the time to test and how to know when to have sex

Can someone please explain to me when I should be testing as in what time of the day, and if the line is a solid dark, would that be the main time to baby dance, or would the three times before when the line behind to get dark?

Really trying to conceive on the first shot