def _clean_timings(raw_timings: list, start_time: int) -> list:
    """
    Converts a list of raw times into clean times.

    Each raw time is divided by 5000 to convert it to seconds. Also, the time list is adjusted to the
    time the fMRI began scanning.
    """

    clean_timings = []

    for raw_time in raw_timings:
        time = (raw_time - start_time) / 5000
        clean_timings.append(time)

    return clean_timings