Updated percentage calculation method