This might do the trick for you.
Add a Slider Control to your layer. Call it something like Degree Control.
Option- (or Alt-) click on the stopwatch for Rotation. Add the following expression:
angle=effect(“Degree Control”)(“Slider”); //feel free to pickwhip this
frequency=60;
spin=Math.sin(frequency*time)*angle;
spin
Now add keyframes for Degree Control for your maximum and minimum rotation at the points in time you want them to be. In your case, 5 degrees at 00:00 and 0 degrees at 00:24.
Math.sin will bounce between the positive and negative values of the Degree Control. You can speed up or slow down the rotation by changing the number for frequency in the second line.
This won’t give you EXACTLY 5 degrees, then 4 degrees, then 3 degrees, etc. but it will give you a decaying oscillation, which seems to be what you want. I’m a bit of an expressions newbie myself, so there’s no doubt a more elegant solution, but this should get you rolling.