You can put this solution on YOUR website! There's not a closed form solution.
You need to use Newton's method.
You're solving for the intersection of a line with the exponential curve.
.
.
.
.
.
.
As you see, you can have 0, 1, or 2 solutions depending on .