Earth’s oxygenated atmosphere will most likely last another billion years, before it plummets relatively rapidly. By about 1.1 billion years from now, oxygen levels will likely drop to just 1% of the present atmospheric level.
https://newatlas.com/environment/earth-atmosphere-oxygen-life-expectancy/
https://newatlas.com/environment/earth-atmosphere-oxygen-life-expectancy/