If the United Kingdom votes to withdraw from the European Union on June 23, it will have two years to complete the process.