total time calculated and progress bar is functioning