def score_weight(home_score: int, away_score: int) -> float:
    """Calculate score difference weight to be applied."""
    score_diff = abs(home_score - away_score)

    if (score_diff == 0 or score_diff == 1):
        return 1
    elif (score_diff == 2):
        return 1.25
    else:
        return (11 + score_diff) / 10