Course Progress Calculations - UnlockedLabs/UnlockEdv2 GitHub Wiki
Number of courses completed
If the user has an existing outcome record for the course then the course is considered complete. It should be noted that when total progress milestones are completed, this does not mean the course is completed.
Number of courses in progress
If the user does not have an existing outcome record for the course then the course is considered 'in progress'.
Time spent working on course material
This is calculated by summing all of the most recent activity records total_time column (represents seconds) and then dividing the sum by 3600 seconds to convert to hours.