I guess second hypothesis means you second try to duplicate the function Sa from the MC13 screenshot.
Your first try was the best anyway. Because you used units (a good idea as this is one of the strengths of Mathcad and also Prime) you have to use 2.4 s instead of just 2.4 as Luc already stated.
And you can/should plot the function Sa(t) and not define another one where all the used variables are unknown. Variables you define inside a program (like RW and C) ar known only local inside the program but not at worksheet level.

More mistakes in the definition of Sd. You have to define/assign RW and C in the same way as in your function Sa using local assignments. Just writing the variable name below the comparisons can't work. Once you do that and add the unit for the value 2.4 you are again up and running.
You don't need to use RW and C as arguments of your function. After all you don't intend to provide values when you call the function, don't you? You simply provide a time value, nothing more.
I changed the name of the used time argument from uppercase T as you did to lowercase t, but this would in no way have been necessary. The name of the formal function argument does not matter at all. The range T you define is and should be only used for the plots.

Prime 11 sheet attached