Figured out code error now I need to fix equation.