whats this formula doing
D3-C3+(D3<C3)

if D3 is less than C3 it will add 1 - if not it adds 0 (D3<C3) logical test means (TRUE = 1 FALSE = 0 )
is that what you want?