How Long was Anne Frank in Hiding?

Anne Frank and her family went into hiding in July of 1942. They remained hidden away until they were discovered in August of 1944. I cannot imagine what it would be like to be in hiding for over 2 years.