How can I pass a calculation to the payment field?