lil\' formatResult refactor
refactor calculate function