You can apply for the visa at least 40 days in advance to get the visa on time with your travel date. This will also eliminate any sort of problems that may arise due to the delay in visa processing.