Simplifying percentage calculation