totalTaskCountFor method

int totalTaskCountFor(
  1. Task task
)

Implementation

int totalTaskCountFor(Task task) {
  var daysCount = daysPerIntervention;
  if (task is Observation) {
    daysCount = 2 * daysCount +
        (study.schedule.includeBaseline ? study.schedule.phaseDuration : 0);
  }
  return daysCount * task.schedule.completionPeriods.length;
}