Deduct credit card change from cash payment account

Here is how to add Tips as a calculation:

For giving out cash out, I think this might help: