Tweaked earnings calculation

I can't maths properly