The Latvian economy entered a phase of fiscal contraction during the second half of 2008 after an extended period of credit-based speculation and unrealistic appreciation in real estate values. The national account deficit for 2007, for example, represented more than 22% of the GDP for the year while inflation was running at 10%.