Refactor UpdateProgress computation