rewrite delta calculation

a small change that shortens and clarifies the calculation in Factory::findFirstDayOfWeek