Time- and state-dependente drift calculation

Calculates the drift of a Wiener process constrained to stay under
threshold (S) until time (T)