Calculate totals entered into fields