Calculating and showing statistical information upon form submission