At some point in the future the cost of maintenance vs. cost of rewriting/upgrading will be so much in favor of the latter that businesses will make the (correct) choice to "go with the times" instead of spending an ever increasing amount of money and time on maintaining a code base `x` years old written in a language not officially supported/extended for `y` years, experts for which are increasingly rare (and thus expensive).
And yet there are tons of lines on COBOL in active use today. What makes you think 2.7 code, which powers tons of businesses, is going anywhere?