correct % calculation