TI1 module for T1 map

I have a T1 map file that I have loaded into Slicer. I want to create a simple module that has a TI1 slider that the user slides to change the TI value of the T1 map using the equation
1 - 2 exp(-TI / Tone), and that output TI1 image is outputted on the Slicer application.