The following link was provided not long ago by some wonderful member here who's name I can't remember right now to give credit to. Sorry! But here's a link that has the type of formula you're looking for. :)
http://www.robertkaufman.com/quilting/ask_margrit_fall_2006/