The solution combines two custom functions and automation: driving distance is designed to calculate the travel distance between addresses while…