Use TF's algo for the earns (thanks)