Calculating Amount of Times a Student has Logged Into a Class

Community Novice

Hello Everyone,

I am trying to calculate the amount of time a student has logged into a give course.  So far I have been able to do this if it is the student's first course but cannot distinguish between course once they get into more than one course.

Am guidance would be much appreciated.

Thank you,