Change timestamp of keyframe with expressions

I have following curve set to my keyframes
I want to change how long the animation pauses there in the middle with a slider.
So set it to 5 -> the pause is 5 seconds long
slider value set to 20 -> 20 second pause