Can't you think about entering how much margin can be "sacrificed" in addition to a fixed number of trades and a maximum premium? Then there's no need for tedious calculations.
You could also enter it once in the schedule and allocate margin in % to each trade!?