Added a few functions to calculate.js, must complete 5 functions to be ready for DB