def maximum(qty1, qty2):
    """
    Returns a ReportableQty that is the maximum of `qty1` and `qty2`.

    Parameters
    ----------
    qty1 : ReportableQty
        First quantity.

    qty2 : ReportableQty
        Second quantity.

    Returns
    -------
    ReportableQty
    """
    if qty1.value >= qty2.value:
        return qty1
    else:
        return qty2