recalculate activities helper