The timeframe depends on the size of the planned celebration; generally speaking – try giving yourself two weeks lead time as this will allow enough time for organizing gifts/food/etc. While still meeting deadlines associated with daily responsibilities. However, basic well-wishing (card/email) can be done anytime leading up to the birth date without much planning effort beyond drafting message content, so don’t hesitate to reach out when inspiration strikes!