<s>[INST] I'd like to automate the calculations associated with applying a credit card payment. The funds are credited back to the cardholder's account. Do you have any formulas that can help me do this?[/INST]