maternity leave can be taken up to 4 weeks before delivery. i dont think you need a gynae letter for this, as long as there's mutual agreement with your employer. you can use the maternity leave calculator on the MOM website as a guide. if not mistaken, once you and your boss are agreeable on the arrangements, you can submit the maternity leave form to your HR from the beginning of your maternity leave.