def find_index_from_time(time, sampling_rate):
	""" 
	Gives the index corresponding to an input time. This relies on
	the sampling rate 

	Arguments:
		time - time needed to convert to index
		sampling_rate - sampling rate of the list
	"""
	index = int(round(time*sampling_rate))
	return index