How can I create a tabulated total amount for my form?