formatting payment history