It varies enormously by skill and by player, and anyone quoting you a fixed number is guessing.
Some skills are deceptively quick — Runecrafting, for instance, doesn't take long per trip but runs about 15 minutes a load. Others scale hard: Woodcutting low-level trees is fast, high-level trees are not. There's no way to predict your exact time to 99.
As a rough bracket: playing regularly and in volume, two months is achievable. Playing occasionally, expect six months to a year.