Fixing bug in getStudyDays, margarita