The variable t is defined in the domain $t>0$. At first, I thought $k$ could be calculated by normalizing $p(t)$ to $1$. So $$k = \frac{1}{F(\infty) - F(0)}$$ where $F(t)$ is the primitive function of $f(t)$.
However, I encountered a problem with this type of function, (I applied specific values to give a concrete example):
\begin{equation} p(t) = k(1+\sin(20t))e^{\frac{-t}{1.5}} \end{equation}
when using the method above, I found $$F(\infty) - F(0) \approx 1.55$$ But, when plotted, $f(t)$ looks like this:
So for some $t\to 0$, where $f(t)$ peaks, the probability $p(t)$ will be larger than $1$ because $1/k$ is smaller than $f(t)$ there. In this case, how do I find $k$? What constraints should I put in my calculation to make sure that $p(t)$ is always smaller than $1$.