Added method for calculation waiting time output value