Updated the percentage calculation