How to program this math function curve?

So like critical chance, it should not be 100% (or maximum value designed).
Input some stat value, the result of critical chance should be increased but follow above curve, so even if input more stat, result become short, but not 0.

How to code above curve?

looks like just Sin and Cos values…