Erc Credit Calculation