IIf([Baseline Start]=projdatevalue("NA"),0,IIf([% Complete]=100,1,IIf([Finish]<[Current Date],4,IIf([Finish Variance]>0,4,IIf([Duration9]/480<11,3,IIf([Duration10]/480<11,3,2))))))
0(QUESTION MARK) - not baselined
1(BLUE) - complete
2(GREEN) - on track, starts later than 2 weeks out from the current date
3(YELLOW) - on track, in progress or starts/finishes within 2 weeks
4(RED) - finish date in the past, or task is incomplete with a planned finish later than the baseline finish