calculate result calculation