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