Calculating the amount of credit to customers of the company