Help with equation in ruby

I'm doing some calculations in ruby and works well when doing basic stuff like subtracting a from b but I have something a little more complex that I just cant get the syntax right or work out the most efficient way to do this.

In our previous reporting system we basically do the below formula to calculate "Service Level" I'm really stuck trying to do this correctly in ruby.

ServiceLevel = (CallsAnswered + CallsAbandoned) – (CallsAnsweredAftThreshold + CallsAbandonedAftThreshold) / (CallsAnswered + CallsAbandoned) x 100

What have you tried? You will need to event.get each of the values and probably .to_f some of the values if you do not want integer arithmetic.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.