def samples_to_ms(samples, sampling_rate):
    """
    Convert a duration in samples into milliseconds.

    Arguments:
        samples (int):
            Samples to convert into milliseconds.

        sampling_rate (int):
            Sampling rate of of the signal.

    Returns:
        float: Duration in ms.
    """
    return (samples / sampling_rate) * 1000