how late can i take the gre
So you might not even know if you need a retake until about 2 weeks after the test. This means that ideally you should actually take the GRE at least 36 days (15 days to get your score + 21 days to schedule a retake) before your app is due.