Add simple credit calc functionality