Hi Pam, when you write the formula for item number 1, you can add in some variables to store the count for the aging.
Eg:
shared numbervar shortaging;
shared numbervar longaging;
shared numbervar totalrecords;
local numbervar orderage := maximum ({table.field}, table.id}) - {date created};
if orderage < 20 then (
shortaging := shortaging + 1
totalrecords := totalrecords + 1
) else if orderage >= 20 and orderage < 50 then (
longaging := longaging + 1
totalrecords := totalrecords + 1
) else (
totalrecords := totalrecords + 1
);
maximum ({table.field}, table.id}) - {date created};
At the footer, put a few formulas that declares and displays the count as well as calculating the percentages.