There is no definite answer to this question. It depends on how old the website is, how much on-page and off-page optimization have been done, the content of the website, and many more. In easy words, there is no definite time to be sure of the results of SEO.