Calculate SLA as a issue property

Hi Team,

I’m trying to create a SLA issue property by Priority
[Closed in SLA]:

-- annotations.group=SLA
CASE [Issue].CurrentHierarchyMember.get('Priority ID')
-- Blocker id = 1
WHEN 1 THEN [Measures].[Resove time] < 1
-- Critical id = 2
WHEN 2 THEN [Measures].[Resove time] < 4
-- Major id = 3
WHEN 3 THEN [Measures].[Resove time] < 10
ELSE [Issue].CurrentHierarchyMember.get('Priority ID')
END

[Measures].[Resove time]

-- annotations.group=SLA
 DateDiffDays(
        [Issue].CurrentHierarchyMember.get('Created at'),
        [Issue].CurrentHierarchyMember.get('Resolved at'))

But [Closed in SLA] always execute ELSE brunch. What I do wrong?