Calculating JSON data and adding the results after submision to the spreadsheet.