factor out the range-handling portions of receivables report, start on a similar...