Maybe add a second test to insure M1 isn't blank:

Condition1: Formula Is: =AND($M1>0, $M1 - TODAY() < 183)