Updating percentage calculation