A visa can be applied for no earlier than three months before departure for most countries. However, there is a difference in procedure times per service level. If you send your documents too short before departure, an urgent procedure may be necessary to get your passport back on time. So ensure you send your documents and passport(s) on time.