def linear_percent_absorption_at_time(time, absorption_time):
    """
    Find percent of absorbed carbs using a linear model

    Parameters:
    time -- relative time after eating (in minutes)
    absorption_time --  time for carbs to completely absorb (in minutes)

    Output:
    Percent of absorbed carbs
    """
    if time <= 0:
        return 0
    if time < absorption_time:
        return time / absorption_time
    return 1
