How to pass a calculation to a payment field ?