private Stretch newStretch() {
LocalDate startDate = getTaskStartDate();
BigDecimal amountWorkPercent = BigDecimal.ZERO;
Stretch consolidatedStretch = stretchesFunction
.getConsolidatedStretch();
if (consolidatedStretch != null) {
startDate = consolidatedStretch.getDateIn(resourceAllocation)
.plusDays(1);
amountWorkPercent = consolidatedStretch.getAmountWorkPercentage().add(BigDecimal.ONE.divide(BigDecimal.valueOf(100)));
}
return Stretch.create(startDate, resourceAllocation, amountWorkPercent);
}