Implemented "Calculate" button