Format average earnings properly