import math


def md_exp(**kwargs):
    """exponential decline from start with factor"""
    start, factor = float(kwargs['start']), float(kwargs['factor'])
    def f(t):
        return math.exp(-t * factor) * start
    return f