r k = -1;
        var tim;
        var total_time = 0;
        var total_distance = 0.0001;
        for (i = 0; i < name.length; i++) {
          k = k + 1;
          tim = time[k][2];
          while (time[k][1] < name[i][1]) {
            k = k + 1;
            tim = tim + time[k][2];
          }
          sek = tim / 1000;
          min = Math.trunc(sek / 60);
          sek = Math.trunc(sek % 60);
          len = 0;
          total_time = total_time + tim;
          for (j = name[i][0]; j < name[i][1]; j