Hello Jira Community 
I am working on a project that displays first response time on a third party dashboard with the data I got from the JIRA rest api. I am able to get 'created' and '[CHART] Date of First Response' which aligns with the created and first comment time data that I see on the ticket page .
What I am unable to understand, is the calculation of the first response time under the SLA section on the ticket page (section in red per screenshot below).
Per the created (Mar 7, 18:33) and the first comment time (Mar 8, 04:49), the first response time should have been 10hrs instead of 1h44m that's shown in the red box. We use 24/7 Calendar in our project setting >SLAs. The result (1h44m) does not make sense for either 24/7 calendar or Sample 9-5 calendar. The same applies to time to resolution.

My questions are:
- how is the SLA calculated ultimately?
- if I would like to get the same number as Jira UI on a third party tool, what are the fields to use from the rest API?
Thanks for the help in advance!