Video in progress

Strong Junior 🤝 Soft skills

If they ask "How many days will this task take?", how do you work out the estimate?

I break the task into small pieces, put a rough time on each, then add a buffer for testing, review and uncertainty. If my confidence is low, I give a range instead of an exact day and explain what it depends on.

📖 Answer

The most common mistake is estimating the "time to write code" and forgetting everything else.

For example, the task "add a promo code to an order":

Part Estimate
DB migration + entity 0.5 days
Calculation logic 1 day
REST endpoint + validation 0.5 days
Unit and integration tests 1 day
Code review, fixes 0.5 days
Uncertainty buffer 0.5-1 day

A total of 4-4.5 days. If you said "two days", you'd have left out the tests and the review.

A few more points:

  • If you touch an unfamiliar part of the code, say so openly: "I haven't looked at this module yet, so I'll spend half a day learning it and then give a more accurate estimate."
  • An estimate is not a promise. But if it has to change, say so the moment you notice, not on the last day.
  • Compare your estimates with the actual time. After a few months you'll know your own "coefficient".