changing progress bar formula