.calculateTotalToDistribute(day, getGoal());
EffortDuration effortLimited = min(limit, toDistribute);
PartialDay distributeOn = day;
if (effortLimited.equals(limit)) {
IntraDayDate start = day.getStart();
distributeOn = new PartialDay(start, start.increaseBy(
resourcesPerDay, effortLimited));
}
return effortDistributor.distributeForDay(distributeOn,
effortLimited);
}