The Earth is not 12 billion years old. It is more like 5 billion
years old.
Hubble's constant cannot be determined from the age of the
Earth.
Hubble's constant describes how fast the universe is expanding.
It can be determined by looking at the redshifts of stars that are
a known distance away. From the redshift, one can determine the
velocity of the star. Then Hubble's constant is defined as follows:
v=Hd where v is the velocity of the star, H is Hubble's constant
and d is the distance to the star. The current accepted value of
Hubble's constant is about 71 km/s/Mpc.