You should apply before reaching your ATP mins. I applied about 3 months before reaching mine and picked a class date when I anticipated reaching them. I didn't have to, but if you are not going to reach them they will move your class date to the next available slot without any issue.