You can put this solution on YOUR website! You want to first work with p=(t-s)/t and use it either to substitute for t or for s, in the f equation, and then simplify.
Also do you see, f contains and p equation also contains .
This might give you something easier to use.