fixed rounding issue in average earnings