1) Highlight C2
2) Apply these CF settings:

Condition 1: Formula Is =D2<>""
Format... Pattern: Green

Condition 2: Formula Is =C2<TODAY()
Format... Pattern: Red

3) Now copy that formatting using the format painter to E2 and G2