calculate_result function

Method that returns the value or variable depending on where it is in the calculated metrics.