Fix math in last variable

Fix the math equation on the result variable