There are many variables based on the style of riding you do, height and weight, how tough you are on a bike, maintenance regimen etc, but I think it's safe to assume that any decent road bike will last at least the 2 years you are looking for.
55/Rad