finish category result calculation