Not sure, but I think it's a minimum of four years. You sign a contract, so you are obliged to stay for the four years, and then you can sign up again or do as you please. I don't think I'd join. The educational opportunities seem pretty cool, but not worth it on the whole. I don't love my country, I don't trust the government and I have no desire to die for something I don't believe in.