def _frange_percent(frame, frange):
    """Determines what percent completion a task is based on frame and frange

    Args:
        frame : (int)
            The frame to determine what percent complete we are.

        frange: (<nuke.FrameRange>)
            A nuke.FrameRange object with frange information.

    Returns:
        (int)
            The percentage of completion.

    Raises:
        N/A

    """
    percent = (frame - frange.first()) / float(frange.frames())

    return int(percent * 100)