You need to do something with the calculated factors. For example,
Code:
Margin = OptimalF*Capital