You are free to apply 90 days before the date of your travel. It is recommended that you apply 3-6 weeks in advance before you travel to avoid any visa processing delay issues interfere with your travel itinerary.