Denmark maintained a healthy budget surplus for many years up to 2008 , but the budget balance swung into deficit during 2009 - 10 .