It needs 2 weeks to lock in. Fingers crossed!
Why does it need 2 weeks please ?
It's not actually two weeks and can take longer. The requirement for lock-in is 75% over one 8064-block activation period. In general 8064 blocks happen approximately every two weeks depending on changes in difficulty and hashing power. This is why someone might state two weeks.
An activation period therefore starts approximately every two weeks and likely will be within +/- 24 hours of a two week period. Currently we are near the end of a activation period (at the time of this posting we are about 1.9 days away from the start of the next activation period). Therefore if we continue to exceed the 75 percent requirement for the next 15.9 days lock in occurs. Actual segwit blocks will start approximately 2 weeks after lock-in. So at this moment we are about 29.9 days away from the first segwit block being mined.
With that explanation I haven't really answered your question. In mining there is variance and that is why the percentage of found blocks supporting segwit goes up and down (although conspiracy theories abound). It's possible to exceed the threshold of 75 percent for short periods of time without 75 percent miner support. The programmer needs to pick an arbitrary; but, large enough period that any reasonable person would agree demonstrates consensus on the network. Basically it's a decision that the developers make. They could have picked fewer or greater than the 8064 blocks per activation period.