Use a determinate progress bar when you are able to know when the task will finish.