Calculate SLA deadlines for support tickets based on customer tier and urgency. Use when determining response deadlines, checking SLA compliance, or when user asks about SLA, deadline, or response time requirements.
75
63%
Does it follow best practices?
Impact
95%
2.02xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./lesson-04-claude-code-config/exercise/solution/.claude/skills/sla-calculation/SKILL.mdThis skill teaches Claude how to calculate Service Level Agreement (SLA) deadlines for support tickets.
Use this skill when the user requests:
| Customer Tier | Urgency | Response Time | Business Hours |
|---|---|---|---|
| Enterprise | URGENT | Immediate | 24/7 |
| Enterprise | HIGH | < 1 hour | 24/7 |
| Enterprise | MEDIUM | < 4 hours | Business hours |
| Enterprise | LOW | < 24 hours | Business hours |
| Standard | URGENT | < 1 hour | 24/7 |
| Standard | HIGH | < 4 hours | Business hours |
| Standard | MEDIUM | < 4 hours | Business hours |
| Standard | LOW | < 24 hours | Business hours |
Gather:
From the matrix above, find:
For 24/7 SLAs:
deadline = submission_time + response_timeFor Business Hours SLAs:
1. Start from submission_time
2. Add response_time in business hours only
3. Skip weekends and holidays
4. Calculate final deadlinetime_remaining = deadline - current_time
percent_remaining = (time_remaining / total_sla_time) * 100See examples.md for detailed calculation scenarios.
Inputs:
Calculation:
Inputs:
Calculation:
Inputs:
Calculation:
If submitted during business hours with time remaining:
submission: Monday 2pm
SLA: 4 business hours
Monday 2pm + 4 hours = Monday 6pm
BUT: Business hours end at 5pm
Monday 2pm → 5pm = 3 hours used
Remaining: 1 hour carries to Tuesday 9am
Deadline: Tuesday 10amBusiness hours SLAs start next business day:
submission: Saturday 10am
SLA: 4 business hours
Next business day: Monday 9am
Monday 9am + 4 hours = Monday 1pm
Deadline: Monday 1pmHolidays counted as non-business days:
submission: Thursday 3pm (day before holiday Friday)
SLA: 4 business hours
Thursday 3pm → 5pm = 2 hours used
Holiday Friday: skipped
Monday 9am + 2 hours = Monday 11am
Deadline: Monday 11amEscalate when:
{
"ticket_id": "TICK-12345",
"submission_time": "2025-01-17T14:00:00Z",
"customer_tier": "enterprise|standard",
"urgency": "URGENT|HIGH|MEDIUM|LOW",
"sla_window": "1 hour",
"coverage_type": "24/7|business_hours",
"deadline": "2025-01-17T15:00:00Z",
"current_time": "2025-01-17T14:30:00Z",
"time_remaining": "30 minutes",
"percent_remaining": 50,
"risk_level": "on_track|at_risk|critical|breached",
"escalation_needed": false,
"next_checkpoint": "2025-01-17T14:48:00Z"
}"Immediate" = operational definition:
If ticket includes timezone:
If timezone unknown:
Some tickets qualify for multiple SLAs:
Before finalizing SLA calculation:
Typically used after ticket classification:
Calculating business hours:
Handling edge cases:
Risk monitoring:
A good SLA calculation should:
6820a25
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.