SYNOPSIS See the included script calc-accumulated-discounts.