Update calculation.js and manage input fields tests