For each purchase date, compute sum of total due, of unpaid amount, and the number of purchases on that date.