If you’re on contract, you must’ve actively used your device with your pay monthly SIM for at least six months. PAYG customers require £8.99 of credit.
iPhones and iPads take up to seven days to unlock. Up to 10 days for all other devices.
(Thanks to chrr77 at HUKD)