Finished part of the code to calculate GT array with 0.5s precision