Let's Do the Twist!
L = 150 x CAL x CAL / T
..where L is length of bullet in inches, CAL is calibre in decimals of an inch and T is rate of twist of the rifling in inches.
* Note that this formula becomes less accurate at the larger calibres used in black powder firearms