original_string: public function calculate(Calculator $calculator, $inputValuesGrid)
      {
          $outputValuesGrid = [];
          foreach ($inputValuesGrid as $date => $inputValues) {
              $outputValuesGrid[$date] = $calculator->calculate($this, new \DateTime($date, $this->dataTimeZone), $inputValues);
          }
          return $outputValuesGrid;
      }
code: public function calculate(Calculator $calculator, $inputValuesGrid)
      {
          $outputValuesGrid = [];
          foreach ($inputValuesGrid as $date => $inputValues) {
              $outputValuesGrid[$date] = $calculator->calculate($this, new \DateTime($date, $this->dataTimeZone), $inputValues);
          }
          return $outputValuesGrid;
      }
code_tokens: public function calculate ( Calculator $ calculator , $ inputValuesGrid ) { $ outputValuesGrid = [ ] ; foreach ( $ inputValuesGrid as $ date => $ inputValues ) { $ outputValuesGrid [ $ date ] = $ calculator -> calculate ( $ this , new \ DateTime ( $ date , $ this -> dataTimeZone ) , $ inputValues ) ; } return $ outputValuesGrid ; }
docstring: Returns calculated params time grid.
  
  @param Calculator $calculator
  @param array $inputValuesGrid
  @return array
docstring_tokens: Returns calculated params time grid .