Compute historical activity