Accounting for margin rates on short sale

Is there a way to account for margin costs for stock short sales while doing back testing.

For instance if I short a stock and owe a prorated 50% annual borrowing fee from interactive brokers during the time of holding, can i use the #bars of the short trade to account for this margin costs.

The backtest settings tab only allows margin rate and account margin inputs.

thanks in advance,