Your parentheses are unbalanced.
IF(V1279−V1278>0,V1279−V1278<12),IF(DUR2DAYS(D1279−D1278=1),1,0)
The format for the IF() command is:
IF ( <test_expression>, <do_this_if_true>, <do_this_if_false> )
In your case, test_expression (everything up to the first ,) is:
V1279−V1278>0
IF this evaluates to true, it runs everything past the comma:
V1279−V1278<12
If the test_expression evaluates to false, it runs everything after the true_statement, which is where it breaks:
IF(DUR2DAYS(D1279−D1278=1),1,0
Without knowing what your expectation is, it's hard to tell you how to correct it, but as written the syntax doesn't fly.