Assuming the European Parliament also gives the green light, the UK will formally leave the EU on 31 January with a withdrawal deal - and it will then go into a transition period that is scheduled to end on 31 December 2020.
It's not just a trade deal that needs to °æ»ê»çµ¿Á·¹ß be sorted out. The UK must agree how it is going to co-operate with the EU on security and law enforcement.