def sum_of_series(first_term: int, common_diff: int, num_of_terms: int) -> float:
    total = (num_of_terms / 2) * (2 * first_term + (num_of_terms - 1) * common_diff)
    # formula for sum of series
    return total