Update KeepTrackofStudyTime

Simplifying the code where I could, still trying to figure out the NaN error on line 8