How to check if my player agent is at the end of the position

I just dont get that message in console, there is no errors.

 void checkPosiiton()
	{
		if(Input.GetMouseButtonDown(0))
		{
		
			NavMeshPath path=new NavMeshPath();
			agent.CalculatePath (agent.destination, path);
		
			if (path.status == NavMeshPathStatus.PathComplete) 
		
			{
			print ("I am Here");
		
			}

		}

Good day.

I normally check if the Vector3.Distance between destination.position and transform.position is lower than a value, inside a if sentence.

Bye!

If helped, accept the answer and close the question!

Could you write this as a code please.