First graders typically turn 7 during the course of that school year, and it increments from there (obviously) so that they're turning 18 in their Senior, or 12th grade year.
I hadn't thought of it in terms of nekokami's add 5 or 6 to the grade before, but maybe I'll be able to keep it straight now with that trick.