Avatar

Correct answer by
Level 2

To calculate the difference make use of:

var diff= (Actual.rawValue - Estimate.rawValue);

if(diff < 0)

{

this.rawValue=0;

}

else

{

this.rawValue=diff;

}

To calculate the percentage difference you could make use of:

var diffPer= (Actual.rawValue/ Estimate.rawValue);

if(diffPer < 1)

{

this.rawValue=0;

}

else

{

this.rawValue=diffPer;

}

View solution in original post