Moved calculation of the total number of steps / day into a function