It does depend on your specific credit history 
For someone who’s
Who is bankrupt - it will take a couple of years
With reasonable credit - it could take a month or so, just by getting on the electoral register or paying off some debt.
When
Disputing errors and mistakes – this can take from 3 - 6 months to raise the dispute with your lender or the Credit Referencing Agencies (CRA) to get things corrected.
Building your score after items such as missed payments - typically, your credit score is built up slowly over time as the number of on-time payments you make increases, though this process can be sped up a little if you are proactive with things like
- Stop taking out cash on your credit card
- Getting some bills in your name