def samples_to_ms(n_samples, fs):
    """
    Compute milliseconds to number of samples.

    Parameters
    ----------
    n_samples: number
        Number of samples
    fs: number
        Sampling rate

    Returns
    -------
    milliseconds: int
    """
    return n_samples * 1000.0 / fs