Update activities.js

added the notion of day and made more leeway for activities