public function calculate(array $applicants, Collection $demographicQuestions): DemographicDataObject 	{ 		$result = new Collection; 		$total = null; 		$genderQuestionId = null;  		foreach ($this->getMetaData() as $index => $single) { 			if ($index == 'code') { 				$genderQuestionId = $demographicQuestions->firstWhere('code', $single)?->getKey();  				if ($genderQuestionId) { 					$result = $this->fetchAnswers($applicants, $genderQuestionId);  					$total = $result->last()?->answer_value_count; 				} 			}  			if ($index != 'code') { 				if ($total) { 					$this->dataObject->{'set' . $index}(round(($result->firstWhere('value', $single)?->answer_value_count / $total) * 100)); 				} 			} 		}  		return $this->dataObject; 	}