Updated calculations to use Big.js library