How long have we got before humans are replaced by artificial intelligence?