How to calculate the total amount from different areas in my form?