from yesterday’s Seattle Times article: “In the past, new Boeing jets were generally certified and cleared to enter service within 18 months of first flight.”
777X first flight was in Jan 2020, which would say the original target date was mid 2021 … so the literal answer to the question is “about five”