fixed calcualtion of condition monitor