Better earning algo