There is no specific time limit for it. SEO is an on-going process, and if you want your website to rank on the search engines throughout, you must continue with the SEO activities for the longest time.