We have an application for this called the Customer Payment Statistics (CUSPST) or Supplier Payment Statistics (SUPPST). This lists the payment statistics based on the invoice and you can select a specific customer/supplier and period.