Fixed percent calculation

Fixed percent calculation