GanttCalendar monday = new GanttCalendar(2000, 0, 3);
GanttCalendar friday = new GanttCalendar(2000, 0, 7);
task.setStart(friday);
task.setDuration(getTaskManager().createLength(2));
OffsetCalculatorImpl offsetCalculator = new OffsetCalculatorImpl(myStack);
TimeUnitFunctionOfDate monthUnit = (TimeUnitFunctionOfDate) myStack.MONTH;
TimeFrame weekTimeFrame = myStack.createTimeFrame(monday.getTime(), monthUnit.createTimeUnit(monday.getTime()), myStack.WEEK_AS_BOTTOM_UNIT);
Offset[] offsets = offsetCalculator.calculateOffsets(weekTimeFrame, myStack.WEEK_AS_BOTTOM_UNIT, monday.getTime(), myStack.getDefaultTimeUnit(), 70);
assertEquals("Unexpected offsets count", 7, offsets.length);
TaskActivity fridayActivity = task.getActivities()[0];
int pixelOffset = 0;
for (int i=0; i<offsets.length; i++) {