- Implemented calculate results logic.