def dtt_time(averages, bandwidth, overlap, verbose=False):
    """
    Takes in number of averages, bandwidth, overlap of a FFT.
    Returns and prints the amount of data time in seconds the FFT will need.
    """
    if overlap > 1.0:
        overlap = overlap / 100.0
    if verbose:
        print('Averages = {}'.format(averages))
        print('Bandwidth = {} Hz'.format(bandwidth))
        print('Overlap = {} %'.format(overlap * 100.0))
    totalTime = (1 + (averages - 1) * (1 - overlap)) / bandwidth
    if verbose:
        print('\x1b[93m Total DTT Spectrum Time = {} seconds \x1b[0m'.
            format(totalTime))
        print('\x1b[91m Total DTT Spectrum Time = {} minutes \x1b[0m'.
            format(totalTime / 60.0))
    return totalTime
