Calculation of credit purchases