Thanks I understand that part. I just can't get the function right to send the commission earned back to the calculate function.