def get_window(hr, ft):
    """Estimate duration of cardiac cycle with heart rate and frame time.

    (seconds/beat) / (seconds/frame) = frames/beat

    """
    window = int(((60 / hr) / (ft / 1000)))
    return window