[yanan] fix algorithm of calculate problem situation