It runs the probability each turn and it depends on accumulated time, plus civ bonuses, plus happiness I believe. If the city is happier, people are more likely to become experts.
Can be well over 100 turns if happiness is low, even if you have a civ that has bonuses. I think it can get down to around 70 turns if city is happy