Linear interpolation without overshooting

how do i make the graph editors curve straight like linear interpolation does but with flat ends?

i basically want to move an object to a position without any smoothing but the whole animation is longer then that move, so i can’t have the object move past the end point mid animation.


Linear Interpolation (shortcut T)

thats what i already did, but it will overshoot and make it endlessly move, but i need the object to stop 3 seconds into the 5 second animation


Linear Interpolation (shortcut T) not Linear Extrapolation (shortcut Shift+E)


didn’t know there where two polatios and i didn’t think to put additional points on each end to flatten it, thanks.