calculate_result_internal function

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