how many days!!

How many days  can you get pregnant before your period ??? Which is the latest day!!!??