A home pregnancy test should be accurate from 2 weeks after ovulation or from the day your period is due.
If you don't know then do a test 2-3 weeks after you had unprotected sex.
A normal pregnancy can last from 245 to 270 days from conception to delivery, the average being 266 days. If you are counting from the last period add 14 days to these numbers.