CARE #117: Fixed setting up value comparision condition
CARE #119 Added possibility to define second offset in period condition