It is recommended that you submit your visa application at least two to three weeks before your intended departure date for a tourist visa, and approximately one month in advance for a business visa. For a transit visa, one week in advance is generally sufficient. This safety margin allows you to cover the usual processing times and to anticipate any possible problems, such as your e-visa being refused and you having to make a new application.