This looks like the calculation, and not the method you're trying to test?