def METHOD_NAME(t, b, c, d):
    if t <= 0:
        return b
    t /= d
    if t >= 1:
        return b + c
    p = d * .3
    a = c
    s = p / 4
    return a * pow(2, -10 * t) * math.sin((t * d - s) * 2 * math.pi / p) + c + b