Fixed a silly bug in the minutesToMillis function, changed how it calculates periodic CPM