def METHOD_NAME(info, start_time, total_duration):
    if total_duration == 0 or "start_time" not in info or "end_time" not in info:
        info["before_percent"] = 0
        info["during_percent"] = 100
        info["after_precent"] = 0
        return
    info["before_percent"] = int(
        (info["start_time"] - start_time) * 100 / total_duration)
    info["during_percent"] = max(1,
                                 int(info["duration"] * 100 / total_duration))
    info[
        "after_percent"] = 100 - info["before_percent"] - info["during_percent"]
    return info