changes calculate.js