How to calculate amount and pass to Payment form?