How to I set up calculations based on the Input Table?