Integrating the losses