On average, Assassin's Creed 2 runs about 18 to 20 hours, or 21 to 25 if you take your time.
If you rush through the main missions without wandering off to explore, you might wrap it up in around 15 hours. But given how much there is to discover in its richly detailed world, most players end up spending a good while longer soaking it all in.