The time of the two witnesses is not during the tribulation, but after it.
Matthew 24:
29 Immediately after the tribulation of those days shall the sun be darkened, and the moon shall not give her light, and the stars shall fall from heaven, and the powers of the heavens shall be shaken: 30 And then shall appear the sign of the Son of man in heaven: and then shall all the tribes of the earth mourn, and they shall see the Son of man coming in the clouds of heaven with power and great glory. 31 And he shall send his angels with a great sound of a trumpet, and they shall gather together his elect from the four winds, from one end of heaven to the other.
The time of the two witnesses coincides with verse 29. They are the ones who cause these things to happen. This is a 3.5-year span of time that takes place "Immediately after the tribulation of those days" (which is defined in verse 21). THEN - after that - "And then shall appear ..." (verse 30).
Verse 29 - the Two Witnesses
Verse 30 - Jesus! (Second Coming)
Verse 31 - Resurrection / Rapture
Look closely at the Revelation scripture concerning the Two Witnesses and the Trumpet Events. Compare it to the description above in verse 29. Also, pay particularly close attention to everything said with regard to the bottomless pit.
I strongly disagree, the two witnesses will be given power for 42 months/1260 days, this is the same time of (The Beast) in Rev 13:5 his 42 months
The (Two Witnesses) will be literal prophets returned, that will bring literal plagues, and will be literally killed, and lay in a literal street in Jerusalem, as they are called to heaven literally as the world watches, the 2nd woe is past, as the 3rd woe unfolds quickly in the 7th Trump/Angel sounding, in the second coming of Jesus Christ in final judgement and end of this world.
Revelation 11:3-19KJV
3 And I will give power unto my two witnesses, and they shall prophesy a thousand two hundred and threescore days, clothed in sackcloth.
4 These are the two olive trees, and the two candlesticks standing before the God of the earth.
5 And if any man will hurt them, fire proceedeth out of their mouth, and devoureth their enemies: and if any man will hurt them, he must in this manner be killed.
6 These have power to shut heaven, that it rain not in the days of their prophecy: and have power over waters to turn them to blood, and to smite the earth with all plagues, as often as they will.
7 And when they shall have finished their testimony, the beast that ascendeth out of the bottomless pit shall make war against them, and shall overcome them, and kill them.
8 And their dead bodies shall lie in the street of the great city, which spiritually is called Sodom and Egypt, where also our Lord was crucified.
9 And they of the people and kindreds and tongues and nations shall see their dead bodies three days and an half, and shall not suffer their dead bodies to be put in graves.
10 And they that dwell upon the earth shall rejoice over them, and make merry, and shall send gifts one to another; because these two prophets tormented them that dwelt on the earth.
11 And after three days and an half the spirit of life from God entered into them, and they stood upon their feet; and great fear fell upon them which saw them.
12 And they heard a great voice from heaven saying unto them, Come up hither. And they ascended up to heaven in a cloud; and their enemies beheld them.
13 And the same hour was there a great earthquake, and the tenth part of the city fell, and in the earthquake were slain of men seven thousand: and the remnant were affrighted, and gave glory to the God of heaven.
14 The second woe is past; and, behold, the third woe cometh quickly.
15 And the seventh angel sounded; and there were great voices in heaven, saying, The kingdoms of this world are become the kingdoms of our Lord, and of his Christ; and he shall reign for ever and ever.
16 And the four and twenty elders, which sat before God on their seats, fell upon their faces, and worshipped God,
17 Saying, We give thee thanks, O Lord God Almighty, which art, and wast, and art to come; because thou hast taken to thee thy great power, and hast reigned.
18 And the nations were angry, and thy wrath is come, and the time of the dead, that they should be judged, and that thou shouldest give reward unto thy servants the prophets, and to the saints, and them that fear thy name, small and great; and shouldest destroy them which destroy the earth.
19 And the temple of God was opened in heaven, and there was seen in his temple the ark of his testament: and there were lightnings, and voices, and thunderings, and an earthquake, and great hail.