CAL-572 improve api for getting occurrences of a repetitive event