I went thru this a couple years ago in this TT Post
The conclusion was the student had to be attending class during each of the 5 months.