Custom script report - fetch & format overtime hours like monthly attendance?

I have made a custom report in which i have to fetch overtime hours and i want its column format to be same as monthly attendance

instead of P , i want to fetch Overtime hours

Is there any solution?

Share your py code !