def _decline(di, t, qoi, b):
    """Arp's equation for general decline in a well
        - qoi: initial rate of production
        - di: initial decline rate
        - b: curvature (b=0 exponential)
    """
    return qoi / ((1 + b * di * t) ** (1 / b))