def sum_digit(number):
    """
    Calculate the sum of a number's digits
    """
    assert type(number) == int
    number_str = str(number)
    number_list = [int(i) for i in list(number_str)]
    return sum(number_list)