scouting age algorithm works