Bug fix: need to make heuristic take longer number of periodsin counting of RRule