How to assign calculation value to input table?