Are you sure you need an expression for this?
It sounds like all you want to do is have a ramped rotation on a 3d object.
What you are getting is basic math yeh?
The decreasing ramp number of the equation overtaking the small increase in frame number. Essentially the ramp is going down to zero and at some point is going to return you to your start point of zero rotation.