What exactly are you trying to achieve? flat sloped banked turn to flat unbanked section? or flat sloped bank turn to unbanked (or less banked) incline?
For the former, just leave the cos[slolc]/cos[b] function and extend the banking section to go from banked to unbanked.
For the latter, to find your equivalent cos[slolc]/cos[b] you can simply do the calculation at that point.
i.e.
30* banking flat turn = cos[0]/cos[30] = 1 / 0.866 = 1.15
60* banking flat turn = cos[0]/cos[60] = 1 / 0.5 = 2.0
90* banking flat turn = cos[0]/cos[90] = 1 / 0 = Error
(cos[0] = 1, hence the use of 1/cos[B] for flat turns)
some flat turn banking standards (you have 30 and 60 now)
45 = 1.4
65 = 2.37
75 = 3.86
85 = 11.47! (Somehow I don't think you'll want to use 85 degree banking for a flat turn)
More...
Here are some angles resulting from set forces on a flat turn
1.5 = 48.2
2.0 = 60.0
2.5 = 66.4
3.0 = 70.5
3.5 = 73.4
4.0 = 75.5
4.5 = 77.2
5.0 = 78.4