def get_frequency_graph_min_max(latencies):
  """Get min and max times of latencies frequency."""
  mins = []
  maxs = []
  for latency in latencies:
    mins.append(latency.time_freq_start_sec)
    to_add = len(latency.time_freq_sec) * latency.time_freq_step_sec
    maxs.append(latency.time_freq_start_sec + to_add)
  return min(mins), max(maxs)