Implemented Calculate Pay