def reg_slope(sum_ind_times_dep, sum_independent, sum_dependent, sum_dependent_squared, n):
    """Calculates the slope of the regression line"""
    return (
        (
            (n * sum_ind_times_dep) - (sum_independent * sum_dependent)
        ) / (
            (n * sum_dependent_squared) - (sum_dependent * sum_dependent)
        )
    )