Change the location where Aging is Calculated

Move calculation of Aging from before posting to Excel to while loop of
retrieving data from SQL