It's quite rare to have the degree of control you're envisioning over a project. Most software teams are building products to sell to customers, and most customers aren't going to accept "IDK whenever we're done" as an expected delivery date. Companies can and should provide some degree of wiggle room, but it's not realistic to expect that you can avoid ever thinking about how long a task is going to take.