Update calculate.rb