How To Calculate Total Amount Paid