Here's the statement, I think your answer solved my problem, I'll just add a new line and tab before an AND where needed to break up the line. Thanks for the quick reply.
IF (DATE[3] > (7 * (DM[3975] - 1 )) AND (DATE[3] < (7 * DM[3975]) + 1) AND (DATE[4] = DM[3976]) AND (TIME[1] = DM[3977]) AND (TIME[2] = 0) AND (TIME[3] >= 0))
And here's the new:
IF (DATE[3] > (7 * (DM[3975] - 1 ))
AND (DATE[3] < (7 * DM[3975]) + 1)
AND (DATE[4] = DM[3976])
AND (TIME[1] = DM[3977]) AND (TIME[2] = 0)
AND (TIME[3] >= 0))