Scoring Algorithm

Examples: