LOSS CALCULATION AND DEADTIME COMPENSATION FOR