def weighted_eps(net_income, dividend, outstanding_shares):
    """Computes weighted earnings per share.

    @params
    -------
    net_income: net income of company for the last 1-year period
    dividend: dividend payment of company for the last period
    outstanding_shares: # of outstanding shares, can be used dilluted shares

    returns
    -------
    Returns weighted earnings per share, int or float
    """
    weighted_eps = (net_income - dividend) / outstanding_shares
    return weighted_eps
