Improved time complexity estimation