[rules-users] help in writing this rule logic