How long is an Army officer contract through OCS?

I've heard some say 3 years, 4 years and 5 years for Active Duty. I believe Reserves is 6.