Since the book of Revelation doesn’t specify that the tribulation lasts 7 years, it is obviously based on the passage in Dan 9 : 27, where it says : “And ‘he’ will confirm the covenant with many for one ‘seven’ and in the midst of the ‘seven’ shall cause the sacrifice and the oblation to cease …” But there exists an ambiguity about who this ‘he’ is ! Some believe ‘he’ refers to the ‘prince of the people’, the Antichrist who too will arise from the territory of the erstwhile but resurgent Roman empire, while others believe that ‘he’ refers to ‘Messiah the Prince’ mentioned in Vs 25. So they interpret that Jesus made a covenant with Israel for one ‘seven’ at the start of his ministry ( though there is no scriptural reference to back this view other than Dan 9 : 27 ) but he was rejected and crucified 3 & 1/2 years later, leaving Israel with just another 3 & 1/2 years, which would be the second half of the seven years, after which they will be restored.
It then makes sense that the Antichrist too will enter into a seven year covenant with Israel at the start of his reign, in a bid to deceive the elect, if that were possible but will violate it midway. In that case both these interpretations seem to be compatible and run parallel to each other without creating a clash in our understanding. So either way the ‘7’ year timeline seems to be consistent.