Updated activity tracker to calculate an activity value