calculating values for work progress