Override `taxes_and_totals controller` `calculate_outstanding_amount` method

Hi every one
I hope you all are doing well

Is there a way to override erpnext taxes_and_totals controller class methods in general and calculate_outstanding_amount method specificly ?
I am trying to make a custom app to deal with healthcare insurance and i need to override some functionality in taxes_and_totals controller

Any help would be appreciated

Thanks in advance