factor (a+d−1)(a−c)+(b+c−1)(d−b)