Calculate average inflation rate