def payables_turnover(purchases, average_trade_payables):
    """Computes payables turnover.

    @params
    -------
    purchases: purchases
    average_trade_payables: average_trade_payables

    returns
    -------
    Purchases turnover, int or float

    explanation
    -----------

    """
    return purchases / average_trade_payables

    def number_of_days_of_payables(number_of_days, payables_turnover):
        """Computes number of days of payables.

        @params
        -------
        number_of_days: number of days in period
        payables_turnover: payables turnover

        returns
        -------
        Number of days of payables, int or float

        explanation
        -----------

        """
        return number_of_days / payables_turnover

    def working_capital_turnover(revenue, average_working_capital):
        """Computes working capital turnover.

        @params
        -------
        revenue: revenue
        average_working_capital: average working capital in period

        returns
        -------
        Working capital turnover, int or float

        explanation
        -----------

        """
        return revenue / average_working_capital
