Function
Turns a course's runtime into how long it takes at a number of minutes a day.
The course's total video runtime
How long the learner studies each day
The study days and the equivalent weeks
Weeks are rounded to the nearest whole number because the course page states them as an estimate ("about 5 weeks"). A course that fits in a few days still reads as one week rather than zero.
studyPace(37_768, 20); // { days: 32, weeks: 5 } Copy
studyPace(37_768, 20); // { days: 32, weeks: 5 }
Turns a course's runtime into how long it takes at a number of minutes a day.