add credit calc