def mod(stat):
    """
    Calculate stat modifier from stat.

    stat: The score to generate the modifer for (e.g., 10) returns 0

    returns a number representing a stat modifier

    """
    return ((int(stat) - 10) / 2)