How can I calculate grades and then send them through email from my form submissions