Estimating yardage of a ball of yarn by weight

I was gifted a ball of yarn, but don't know the yardage. Is there a formula to calculate the yardage based on weight of ball and type (light worsted to worsted) of yarn?