How earnings work?