How to sort column fields and get its total

SharePoint List Screenshot

Dear SharePoint Experts,

I would like to ask for tech support regarding on the screenshot that I attached. As you can see from the image, I have a My Requests, All Items, My Balance views, in My Requests are the details that I made. But what I want to have in My Balance View is to sort out and calculate some values. So here it should goes (but I have no idea how should be the calculated script should be): If Request Type = Business Leave, and I only need to get the Approved one from the LeaveApprovalProcess Column, then it should Total the Number of Days/Hours from the Total Leave Column… I don’t need to add the Rejected one, only the Approved one…

Then with that formula, it will be the same with the other Request Type.

Thank you and looking forward to hear soon…