GetPosSlot1
UInt32 posSlot = GetPosSlot1(i);
distancesPrices[i] = posSlotPrices[GetPosSlot1(i)] + tempPrices[i];