Removed buggy earnings calculation