Create calculate.js