Update formula.js

updated the formula so that on the final update of values, the client will be messaged to update his/her investments table