How to create calculations in Input table?