Reg. T Initial Margin and SMA Modelling

Has anyone here modeled Reg. T Initial Margin and SMA (Special Memorandum Account) calculations over time?

I'd like to model this out as margin constraints are important, but I've yet to find anything on the net that specifically describes the day-over-day calculations.