Adding OT hrs into salary pay slip

Hi everyone,

Need your support to find solution for my customization issue with timesheet.
I have modified timesheet by adding overtime hours to be calculated on employee timesheet. But I am struggling with summing regular hour and overtime hour to have total working hours.
Example,

So I am trying to calculate regular hours and overtime hours separately by summing them to reflect in the salary payslip

Please advice for solution.


Here is the source code
I believe can solve multiplying issue

Need total working hours to be = regular hours +OT