Generally, progress bar is used to show the progress of the operations being performed not the time, but if you want number_of_entries will be 20 which is for 20 mins, you should increment the progress bar every 1 minute.