flat helix calculation