Trying to run a calculation on an input table