Clicking submit button changes total calculated amount